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
 Datetime

Author  Topic 

pmelan
Starting Member

1 Post

Posted - 2008-07-21 : 16:06:11
I have a datetime field that I am selecting from a table. Is there a way to convert it to MMMM dd, yyyy?

Example:

Date in table - 7/21/2008

Needs to be - July 21, 2008

Any help is much appreciated.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-07-21 : 16:10:32
Yes use CONVERT with the appropriate style. See SQL Server Books Online for details.

But you should be doing this in your application and not in T-SQL. This is a presentation/application layer issue.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -