Answers for "sql datetime conversions"

SQL
6

sql server convert string to date

Cast( '2011-07-07' as date ) as convertedDate
Posted by: Guest on April-06-2020
0

sql convert date to string yyyy-mm-dd

select CONVERT(char(10), GetDate(),126)
/* 2020-12-23 */
Posted by: Guest on December-23-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language