How I can convert 1/6/2011 12:00:00 AM to 01/06/2011 in MS SQL?
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.
If your aim is to compare two datetime based only on date, this should help
In Sql Server 2008 there is also the type DATE so a
should work too.
For example this code
Has this output