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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a function to a string of the day of the week 1

Status
Not open for further replies.

henin

MIS
Oct 30, 2007
35
IL
Hi everyone
Is there a built in function in the sql server that shows the day of the week as follows:
dayofweek('20080129')->"tuesday"',
dayofweek('20080130')->"wednsday" etc ?
or must i create it myself ?
thanks
 
BOL: DATENAME ( datepart ,date )


DECLARE @A DATETIME
SET @A = GETDATE()

SELECT DATENAME(dw,@A)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top