Format SQL MM / DD / YYYY
SELECT CONVERT(VARCHAR(11), GETDATE(), 101) AS [MM/DD/YYYY]
Code with bulbul
SELECT CONVERT(VARCHAR(11), GETDATE(), 101) AS [MM/DD/YYYY]
select REPLACE(convert(varchar, getdate() , 20), ' ', 'T')
select CONVERT(char(10), GetDate(),126)
/* 2020-12-23 */
convert(varchar, [column_date], 20) --(date or datetime) to yyyy-MM-dd HH:mm:ss
convert(varchar, [column_date], 23) --(date or datetime) to yyyy-MM-dd
--ref https://www.mssqltips.com/sqlservertip/1145/date-and-time-conversions-using-sql-server/