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)
 AM or PM

Author  Topic 

lovehui
Yak Posting Veteran

60 Posts

Posted - 2009-08-13 : 09:22:46
[code]SELECT dateadd(hh,12,datediff(dd,0,GETDATE()))[/code]

Is it 12:00 am or pm?

Thanks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-08-13 : 09:27:29
That is 12 pm (one minute after 11:59 am, and one minute before 12:01 pm).



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page
   

- Advertisement -