all groups > sql server programming > june 2003 >
You're in the

sql server programming

group:

retrieving the DAY from the datetime value i.e. "monday", "tuesday" ....


retrieving the DAY from the datetime value i.e. "monday", "tuesday" .... aeze616 NO[at]SPAM cse.unsw.edu.au
6/30/2003 5:19:50 PM
sql server programming:
Dear sir,

How do you retrieve the day of the week from the datetime value? I
don't want the number. But I want like, 'Monday', 'Tuesday' and so on.
Is it possible?

Re: retrieving the DAY from the datetime value i.e. "monday", "tuesday" .... Andrew J. Kelly
6/30/2003 8:25:07 PM
Check out DATENAME in BooksOnLine.


--

Andrew J. Kelly
SQL Server MVP


[quoted text, click to view]

Re: retrieving the DAY from the datetime value i.e. "monday", "tuesday" .... Aaron Bertrand [MVP]
7/1/2003 12:36:26 AM
SELECT DATENAME(dw, GETDATE())

--
Aaron Bertrand, SQL Server MVP
http://www.aspfaq.com/

Please reply in the newsgroups, but if you absolutely
must reply via e-mail, please take out the TRASH.


[quoted text, click to view]

AddThis Social Bookmark Button