Date format for SQL Select Statements and Internationalization
From: Mike Hubbard (Hubbard_at_discussions.microsoft.com)
Date: 10/12/04
- Next message: Wayne Sheffield: "System Index - how do I get rid of one on a user table?"
- Previous message: Aaron [SQL Server MVP]: "Re: Trouble renaming a column"
- Next in thread: Zach Wells: "Re: Date format for SQL Select Statements and Internationalization"
- Reply: Zach Wells: "Re: Date format for SQL Select Statements and Internationalization"
- Reply: Hugo Kornelis: "Re: Date format for SQL Select Statements and Internationalization"
- Reply: Aaron [SQL Server MVP]: "Re: Date format for SQL Select Statements and Internationalization"
- Reply: Tibor Karaszi: "Re: Date format for SQL Select Statements and Internationalization"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 12 Oct 2004 13:03:07 -0700
Is there a proper (read standard) format that we should be passing date/times
to SQL Server queries so that regardless of a user's Regional Settings or the
version of SQL Server (i.e. domestic MM/DD/YYYY HH:MM:SS or Int'l DD/MM/YYYY
HH:MM:SS) the query will be properly executed? Currently, regardless of the
regional settings of the user's PC or the language setting of SQL Server, the
only format that works between the two is MM/DD/YYYY HH:MM:SS.
What if we send all dates and times in ISO format YYYY-MM-DD HH:MM:SS? Will
this format allow us to use this standard format irrespective of a user's
regional settings or the version of SQL Server, and have it properly executed
by SQL Server?
- Next message: Wayne Sheffield: "System Index - how do I get rid of one on a user table?"
- Previous message: Aaron [SQL Server MVP]: "Re: Trouble renaming a column"
- Next in thread: Zach Wells: "Re: Date format for SQL Select Statements and Internationalization"
- Reply: Zach Wells: "Re: Date format for SQL Select Statements and Internationalization"
- Reply: Hugo Kornelis: "Re: Date format for SQL Select Statements and Internationalization"
- Reply: Aaron [SQL Server MVP]: "Re: Date format for SQL Select Statements and Internationalization"
- Reply: Tibor Karaszi: "Re: Date format for SQL Select Statements and Internationalization"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|