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

后端 未结 5 1034
悲哀的现实
悲哀的现实 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:42

    If DB is SQL Server then

    select Convert(varchar(10),CONVERT(date,YourDateColumn,106),103)
    

提交回复
热议问题