Home Forums SQL Server 2008 SQL Server 2008 - General TimeStamp without milliseconds!!! RE: TimeStamp without milliseconds!!!
Neeraj Dwivedi
SSCertifiable
Points: 6768
More actions
May 20, 2013 at 3:28 pm
#1616807
Then use-
Convert(char(10),getdate(), 120) -- for date
Convert(char(8),getdate(),114)-- For time
Replace getdate(), with our column name.