dbTalk Databases Forums  

How do I get month NAME from a date?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss How do I get month NAME from a date? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Maria
 
Posts: n/a

Default How do I get month NAME from a date? - 04-07-2004 , 08:56 AM






Not sure if this is the right forum for this, but I'm trying to extract the
month name (e.g. April) from a date in SQLServer. I know I can use DatePart
to get the month number. Is there an easy way to get the name, or do I need
to write code to convert?

Thanks



Reply With Quote
  #2  
Old   
sam.moayedi@moneymanagement.org
 
Posts: n/a

Default How do I get month NAME from a date? - 04-07-2004 , 09:32 AM







Quote:
-----Original Message-----
Not sure if this is the right forum for this, but I'm
trying to extract the
month name (e.g. April) from a date in SQLServer. I know
I can use DatePart
to get the month number. Is there an easy way to get the
name, or do I need
to write code to convert?

Thanks


.You can use DATENAME

Quote:

Reply With Quote
  #3  
Old   
 
Posts: n/a

Default How do I get month NAME from a date? - 04-07-2004 , 09:35 AM



You can use DATENAME function

Quote:
-----Original Message-----
Not sure if this is the right forum for this, but I'm
trying to extract the
month name (e.g. April) from a date in SQLServer. I know
I can use DatePart
to get the month number. Is there an easy way to get the
name, or do I need
to write code to convert?

Thanks


.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.