sql server cast date yyyy-mm code example
Example: 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)
--string to date
SELECT cast(convert(date, '23/07/2009', 103) AS DATE)
select convert(date, '23/07/2009', 103)