Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date format switch problemin SQL Server/Access

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
I have experienced the same problem in both Access and SQL Server 2000.
Using the UK date system <%Session.LCID = 2057%>
things are fine until the day matches the month (ie: 2nd Feb, 12th Dec). After that, the day and month are switched whenever a record is added or amended.
I remember seeing something about this on the MS support site months ago, but have been unable to relocate it.
Any ideas?
 
By default, Access and SQL server use the &quot;American&quot; date format, mdy. You can inform SQL Server that you want to use a different format with the SET DATEFORMAT command. Then insert or update the date in the table. See SQL BOL for more info on SET DATEFORMAT.

SET DATEFORMAT dmy
Terry L. Broadbent
Programming and Computing Resources
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top