Here’s a simple one for you guys.
I need to convert the result of GetDate() in this format : YYYY-MM-DD directly in SQLServer2008.
But I can’t find exactly the one i’m looking for here.
Thanks in advance.
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.
The trick is to truncate one that starts with the format you want. One way is to cast it as a string type with only the amount of characters you need: