convert string dd/mm/yyyy in date sql server code example
Example 1: sql server cast date dd/mm/yyyy
--string to date
SELECT cast(convert(date, '23/07/2009', 103) AS DATE)
select convert(date, '23/07/2009', 103)
Example 2: sql convert date to string yyyy-mm-dd
select CONVERT(char(10), GetDate(),126)
/* 2020-12-23 */