Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Set SQL Date format

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-01-17 : 11:14:44
xiaosha writes "hi. i'm using SQL 2000 and this is my first time using a rdbms. i would like to set all date fields to dd/mm/yyy format. but it can't seem to work. whenever i insert the value as dd/mm/yyyy, sql seems to convert it to mm/dd/yyyy. why is it so? is there any way to rectify this?

tks for ur help :)
cheers"

JustinBigelow
SQL Gigolo

1157 Posts

Posted - 2002-01-17 : 11:58:57
Try...

set dateformat dmy


Look in Books On Line under "Set Dateformat" for more info.

hth,
Justin

Go to Top of Page

jackstow
Posting Yak Master

160 Posts

Posted - 2002-01-17 : 12:19:46
I've been plagued by the old SQL Server date formatting problem as well - there are a couple of posts here with some resolutions suggested;

http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=11900

http://www.sqlteam.com/Forums/topic.asp?TOPIC_ID=11999

Jack

Go to Top of Page

rrb
SQLTeam Poet Laureate

1479 Posts

Posted - 2002-01-17 : 18:10:25
It's always hard for those of us not living in the Promised Land...

I hope that when I die someone will say of me "That guy sure owed me a lot of money"
Go to Top of Page
   

- Advertisement -