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 > Re: Date format...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 3078 of 3295
Post > Topic >>

Re: Date formats - what do other people use??

by "David Cressey" <cressey73@[EMAIL PROTECTED] > Jan 16, 2008 at 01:49 PM

"Tony Rogerson" <tonyrogerson@[EMAIL PROTECTED]
> wrote in message
news:fmku04$561$1$8300dec7@[EMAIL PROTECTED]
> 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 sup****t YYYYMMDD so
when
> it comes to ****tability 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]
>
>

A format I've seen several times is YYYY.MM.DD

The use of periods instead of hyphens helps disambiguate it from
YYYY-DD-MM.

Another:  MM-DD-YYYY.

Another:  DD-MON-YYYY  eg.  17-DEC-2007 uses month names instead of
numbers.

I'm not endorsing any of these.  I'm just saying I've seen them.

One test for me is to see what the "table data im****t"  wizard in MS
Access
does with the format.  If the wizard figures out that the item is a date,
and converts all the dates correctly,  that's one argument in favor of the
format.
 




 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
tan12V112 Fri Dec 5 10:44:37 CST 2008.