开发者

DateTime Conversion to Date

开发者 https://www.devze.com 2023-01-09 04:27 出处:网络
I wanted to convert DateTime data which will be pul开发者_运维技巧led from source, to Date format only or I want to retrieve only Date with no time. How is it to be donehere ? Also how is to be done f

I wanted to convert DateTime data which will be pul开发者_运维技巧led from source, to Date format only or I want to retrieve only Date with no time. How is it to be done here ? Also how is to be done for converting the Datetime data for a customised format while pulling from the source ?


Stripping the time was discussed here. Could you possibly use a similar method?

Also...

Refer BOL --> Convert

print convert(varchar(10),getdate(),101)

print convert(varchar(10),DateTimeCol,101)

courtesy of Srinika

0

精彩评论

暂无评论...
验证码 换一张
取 消