Change Date Format(DD/MM/YYYY) in SQL SELECT Statement

前端 未结 5 1082
挽巷
挽巷 2021-02-08 08:28

The Original SQL Statement is:

SELECT SA.[RequestStartDate] as \'Service Start Date\', 
       SA.[RequestEndDate] as \'Service End Date\', 
FROM
(......)SA
WHER         


        
5条回答
  •  孤城傲影
    2021-02-08 09:12

    Try like this...

    select CONVERT (varchar(10), getdate(), 103) AS [DD/MM/YYYY]
    

    For more info : http://www.sql-server-helper.com/tips/date-formats.aspx

提交回复
热议问题