SQL query format from YY-mm-dd to YYYY-MM-DD code example
Example: SQL query to convert DD/MM/YYYY to YYYY-MM-DD
SELECT CONVERT(varchar(10), CONVERT(date, '13/12/2016', 103), 120)
SELECT CONVERT(varchar(10), CONVERT(date, '13/12/2016', 103), 120)