Answers for "sql server cast date as string yyyy mm ddhh mm ss"

SQL
0

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)
Posted by: Guest on March-19-2021
0

sql convert date to string yyyy-mm-dd

select CONVERT(char(10), GetDate(),126)
/* 2020-12-23 */
Posted by: Guest on December-23-2020

Code answers related to "sql server cast date as string yyyy mm ddhh mm ss"

Code answers related to "SQL"

Browse Popular Code Answers by Language