SELECT CONVERT(varchar(10), CONVERT(date, '13/12/2016', 103), 120)
select CONVERT(char(10), GetDate(),103)
/* 30/06/2021 */
SELECT CONVERT(VARCHAR(11), GETDATE(), 101) AS [MM/DD/YYYY]
select CONVERT(char(10), GetDate(),126)
/* 2020-12-23 */
set dateformat dmy;
select PersonalDetails_DOB
,convert(nvarchar(10), cast(PersonalDetails_DOB as datetime), 102) as ANSI_DOB
,convert(nvarchar(10), cast(PersonalDetails_DOB as datetime), 120) as ODBC_DOB
from Users;
DECLARE @myDate DATETIME = '2012-04-20 05:54:59'
SELECT FORMAT(@myDate, 'MM-yyyy')