开发者

How to find Day name?

开发者 https://www.devze.com 2023-03-07 18:11 出处:网络
I have to find the Name of a particular DATE (like Sunda开发者_运维知识库y, Monday etc.) in past.

I have to find the Name of a particular DATE (like Sunda开发者_运维知识库y, Monday etc.) in past.

Suppose I have to find Day Name on

2000-1-1

How can I find that ?


You can use DATENAME function of SQL Server, like this

SELECT DATENAME(dw,'2000-1-1')
0

精彩评论

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

关注公众号