how to convert datetime to string in sql server MM/dd/yyyy code example
Example: sql convert date to string yyyy-mm-dd
select CONVERT(char(10), GetDate(),126)
/* 2020-12-23 */
select CONVERT(char(10), GetDate(),126)
/* 2020-12-23 */