![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In Microsoft SQL Server unfortunetly the only consistent date format is YYYYMMDD, this is legacy from Sybase original code apparently; using YYYY-MM-DD is converted as YYYY-DD-MM in many localised SQL Server installs (us_english is fine, other languages even British aren't). What formats do other people use? Presumeably ISO 8601 (of course), but is the normal consensus YYYYMMDD or the display friendly YYYY-MM-DD which we cannot use reliably in SQL Server. I guess my absolute question is - do most databases support YYYYMMDD so when it comes to portability there is no problems? Background: http://sqlblogcasts.com/blogs/tonyro...h-october.aspx Tony. -- Tony Rogerson, SQL Server MVP http://sqlblogcasts.com/blogs/tonyrogerson [Ramblings from the field from a SQL consultant] http://sqlserverfaq.com [UK SQL User Community] |
#3
| |||
| |||
|
|
In Microsoft SQL Server unfortunetly the only consistent date format is YYYYMMDD, this is legacy from Sybase original code apparently; using YYYY-MM-DD is converted as YYYY-DD-MM in many localised SQL Server installs (us_english is fine, other languages even British aren't). What formats do other people use? Presumeably ISO 8601 (of course), but is the normal consensus YYYYMMDD or the display friendly YYYY-MM-DD which we cannot use reliably in SQL Server. I guess my absolute question is - do most databases support YYYYMMDD so when it comes to portability there is no problems? Background: http://sqlblogcasts.com/blogs/tonyro...h-october.aspx Tony. -- Tony Rogerson, SQL Server MVP http://sqlblogcasts.com/blogs/tonyrogerson [Ramblings from the field from a SQL consultant] http://sqlserverfaq.com [UK SQL User Community] |
#4
| |||
| |||
|
|
In Microsoft SQL Server unfortunetly the only consistent date format is YYYYMMDD, this is legacy from Sybase original code apparently; using YYYY-MM-DD is converted as YYYY-DD-MM in many localised SQL Server installs (us_english is fine, other languages even British aren't). What formats do other people use? Presumeably ISO 8601 (of course), but is the normal consensus YYYYMMDD or the display friendly YYYY-MM-DD which we cannot use reliably in SQL Server. I guess my absolute question is - do most databases support YYYYMMDD so when it comes to portability there is no problems? Background: http://sqlblogcasts.com/blogs/tonyro...h-october.aspx Tony. -- Tony Rogerson, SQL Server MVP http://sqlblogcasts.com/blogs/tonyrogerson [Ramblings from the field from a SQL consultant] http://sqlserverfaq.com [UK SQL User Community] |
![]() |
| Thread Tools | |
| Display Modes | |
| |