Re: Display of DATE format in Management Studio
- From: "Justin Rich" <jrich523@xxxxxxxxxx>
- Date: Wed, 7 Oct 2009 15:31:22 -0400
maybe its 08 only, not sure. but according to the docs it should do it.
"Aaron Bertrand" <moc.liamg@xxxxxxxxxxxxxx> wrote in message news:C6F260DB.2591C%moc.liamg@xxxxxxxxxxxxxxxxx
I'm not sure how SET DATEFORMAT helps.
SET DATEFORMAT DMY;
SELECT GETDATE();
SET DATEFORMAT MDY;
SELECT GETDATE();
results:
-----------------------
2009-10-07 15:14:17.917
-----------------------
2009-10-07 15:14:17.917
On 10/7/09 2:50 PM, in article
8DA8B249-355A-40C3-9DC6-0693AC7C77A8@xxxxxxxxxxxxx, "Justin Rich"
<jrich523@xxxxxxxxxx> wrote:
http://msdn.microsoft.com/en-us/library/ms189491.aspx
"shil" <joshilat@xxxxxxxxx> wrote in message
news:55e20148-7291-48f0-964c-ce5107bcde86@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,
When I execute a SQL query to display values from a table, the date
format is being displayed as "2009-06-07 00:00:00". But I would like
it to display as "6/7/2009 12:00:00 AM".
Is there any setting in the Management Studio I need to set?
My laptop's Language is set to "English (United States)" in the
Regional and Language Settings.
Thanks.
.
- Follow-Ups:
- Re: Display of DATE format in Management Studio
- From: Aaron Bertrand
- Re: Display of DATE format in Management Studio
- References:
- Display of DATE format in Management Studio
- From: shil
- Re: Display of DATE format in Management Studio
- From: Justin Rich
- Re: Display of DATE format in Management Studio
- From: Aaron Bertrand
- Display of DATE format in Management Studio
- Prev by Date: Re: Creating "multiple" rows manually with SELECT
- Next by Date: Re: Help with ROW_NUMBER and recursive query
- Previous by thread: Re: Display of DATE format in Management Studio
- Next by thread: Re: Display of DATE format in Management Studio
- Index(es):
Relevant Pages
|