Skip to content
Advertisement

Tag: sqldatetime

Save datetime in sql table

How I can insert with a query a date like this? 2015-06-02T11:18:25.000 I have tried this: But I have returned: I tried also: but it is not working: The entire query is: What is wrong? Answer Try this: 126 relates to ISO8601, which is the format yyyy-mm-ddThh:mi:ss.mmm. This is the same format as the string ‘2015-06-02T11:18:25.000’. For more information, see

Advertisement