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
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Date Format into 1/31/2011 12:00:00 AM

Author  Topic 

lootmaar
Starting Member

1 Post

Posted - 2011-03-09 : 17:44:13
Can anyone help me convert a date into the following format in SQL Server

1/31/2011 12:00:00 AM


Thanks in Advance

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-03-09 : 18:01:16
You haven't provided the source data. So what does it look like before the conversion?

Or are you just asking about the date/time style? If so, check out CONVERT topic in BOL for the various styles available.

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 -