How do I convert local time to UTC (GMT) time?
Transact-SQL
In SQL Server 2000 & 2005, you can get the current time in UTC format by using the GETUTCDATE() function:
SELECT GETDATE() AS CurrentTime, GETUTCDATE() AS UTCTime
Transact-SQL
In SQL Server 2000 & 2005, you can get the current time in UTC format by using the GETUTCDATE() function:
SELECT GETDATE() AS CurrentTime, GETUTCDATE() AS UTCTime