Published on September 6, 2016 by abundantcode
Filed under SQL Server
Last modified September 6, 2016
This article have been viewed 2764 times
You can retreive the date in the YYYY-MM-DD format in SQL Server using the CONVERT method as shown in this code snippet.
SELECT CONVERT(char(10), GetDate(),126) as abundantcodedate
databaseHow toSQL Servertipstricks
Notify me of follow-up comments by email.
Notify me of new posts by email.