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 2005 Forums
 Transact-SQL (2005)
 Date format

Author  Topic 

sanjay5219
Posting Yak Master

240 Posts

Posted - 2014-08-28 : 03:00:51
Hi All,

How can we present the get date like below.
Wed 8/20/2014 6:31 AM

ahmeds08
Aged Yak Warrior

737 Posts

Posted - 2014-08-28 : 05:51:16
SELECT CONVERT(VARCHAR(20), getdate(), 22)

Javeed Ahmed
Go to Top of Page
   

- Advertisement -