Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Day of the Week Name Needed

Status
Not open for further replies.

OAKEJ

Programmer
Apr 13, 2005
39
US
Is there something that will return the day of the week name, like in DATEPART or something. I know how to do it the long way I just don't want to if I don't have to

ex.
DATEPART("dw",GETDATE())=3 - result wanted is Wed

the only way I know how to do it is

CASE WHEN DATEPART("dw",GETDATE())=3 THEN "Wednesday" else
...

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top