Consulta SQL para convertir DD/mm/aaa a aaaa-mm-dd
SELECT CONVERT(varchar(10), CONVERT(date, '13/12/2016', 103), 120)
Friendly Flamingo
SELECT CONVERT(varchar(10), CONVERT(date, '13/12/2016', 103), 120)
select CONVERT(char(10), GetDate(),126)
/* 2020-12-23 */