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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Change Default Date Format
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

48 Posts

Posted - 08/30/2010 :  08:41:20  Show Profile  Reply with Quote
is there any way in SQL Server i can change the DateTime format to accept dd/mm/yyyy as date format

so when users run this script they dont get error

declare @dt datetime
set @dt = '28/10/2009'
select @dt

what i want is to know how change the sql server so it can understand that the string with dd/mm/yyyy format is the right format for date and accept it


Very Important crosS Applying yaK Herder

52326 Posts

Posted - 08/30/2010 :  09:54:01  Show Profile  Reply with Quote
you need to change language setting to British English or use


for that. why dont you pass dates always in universally accepted iso format? (YYYYMMDD)

SQL Server MVP

Edited by - visakh16 on 08/30/2010 09:56:14
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000