Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Full Month Name

Author  Topic 

satheesh
Posting Yak Master

152 Posts

Posted - 2011-09-06 : 10:42:55
Dear All,

I want to disply full month name in date coulmn

ie for ex:
SELECT CONVERT(VARCHAR(24), GETDATE(), 106)
returns : 06 Sep 2011

But i need to diplay date as 06 September 2011.Any help is highly appreciated.

Thanks
SG

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-09-06 : 10:57:23
SELECT STUFF(CONVERT(VARCHAR(24), GETDATE(), 106), 4,3,DATENAME(month,GETDATE()))
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-09-06 : 11:06:55
as always try to do it in your front end application if possible as this is a presentation issue

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

satheesh
Posting Yak Master

152 Posts

Posted - 2011-09-06 : 11:12:39
Thanks robvolk.Its working!!
Go to Top of Page
   

- Advertisement -