Hi,I'm trying to insert a date with the YYYY-MM-ddTHH:mm:ssZ format into a field with the type datetime but I'm getting an error: Conversion failed when converting date and/or time from character string.Even if I run the following query I still get the same error:SELECT CAST('2016-08-01T07:04:24+0000' AS datetime)I know that this can be converted into a string with the following query but my question why isn't this recognized as a proper datetime and how can I get the table to accept it?SELECT CONVERT(VARCHAR(50),'2016-08-01T07:04:24+0000', 127)
↧