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

DateName( ) Issue

Status
Not open for further replies.

ChopinFan

Technical User
Oct 4, 2004
149
US
I need to get the DateName(Month, QuotaMonth), where QuotaMonth is only the integer of the month (an integer 1 through 12) and not the entire date. How can I best do this?

Thanks!
 

This only returns the integer, which I already have. I need the text.

Thanks!
 
I forgot to say.... I can only give the datename function an integer, not a date, so

Select datename(month, QuotaMonth) doesn't work.
 

Thanks, but you're using getdate(), which I'm not. I only have an integer to use. For example, the QuotaMonth may be 10, but I need to display the month text October instead.

Help! :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top