Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Databases General > Date formats - ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3078 of 3210
Post > Topic >>

Date formats - what do other people use??

by "Tony Rogerson" <tonyrogerson@[EMAIL PROTECTED] > Jan 16, 2008 at 12:39 PM

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/tonyrogerson/archive/2008/01/05/date-format-inconsistency-yyyy-mm-dd-or-yyyymmdd-when-2007-04-10-is-4th-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]




 2 Posts in Topic:
Date formats - what do other people use??
"Tony Rogerson"  2008-01-16 12:39:06 
Re: Date formats - what do other people use??
"David Cressey"  2008-01-16 13:49:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 15:09:00 CDT 2008.