SQL Query - Change date format in query to DD/MM/YYYY

后端 未结 5 1010
悲哀的现实
悲哀的现实 2021-02-19 06:13

What I\'m trying to achieve is fairly straight forward, to get one date format to another;

From This: Jan 30 2013 12:00:00:000AM To This: DD/MM/YYYY

5条回答
  •  走了就别回头了
    2021-02-19 06:40

    Try http://www.sql-server-helper.com/tips/date-formats.aspx. Lists all formats needed. In this case select Convert(varchar(10),CONVERT(date,YourDateColumn,106),103) change 103 to 104 id you need dd.mm.yyyy

提交回复
热议问题