Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date format in SSMS
Message
From
20/07/2011 08:08:10
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01518555
Message ID:
01518610
Views:
43
>SSMS doesn't have any specific format, but if you want to make sure you always pass valid dates, use ISO date format, e.g.
>' YYYYMMDD'
>
>Check CAST & CONVERT topic in BOL
>
>and also
>The ultimate guide to the datetime datatypes

So, basically, this:
UPDATE Member SET AddDate='2009/02/17 03:44:25.157' WHERE Numero=1
...has to be changed to:
UPDATE Member SET AddDate='20090217 03:44:25.157' WHERE Numero=1
Because, the date format was already in YYYYMMDD but it had the slashes in it. Is this what was causing this?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform