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)
 Time Conversion

Author  Topic 

sanjay5219
Posting Yak Master

240 Posts

Posted - 2014-06-10 : 12:56:15
Hi All,

I need to change below in minutes. Please Suggest
1900-01-01 09:16:33.000

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-06-10 : 13:08:48
Is this what you mean?

select datediff(ss, '00:00:00', cast('1900-01-01 09:16:33.000' as time))

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -