How can I change the date format setting in SQL Server 2005 from dd/mm/yyyy format to yyyy-mm-dd?
How can I change the date format setting in SQL Server 2005 from dd/mm/yyyy
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your question is a bit vague – in what context do you want the change the date? In a query? If so, use the SQL below:
See MSDN docs on
CASTandCONVERTfor additional information.Update After Clarification
Please refer to this KB: http://support.microsoft.com/default.aspx?scid=kb;en-us;173907