is there a function in SQL Server, which returns difference between UTC time and local time of the server?
If you're using SQL 2008, then using the datetimeoffset type and related functions are much better. But assuming you're talking about the current offset, you could do something like:
DATEDIFF(minute, GETUTCDATE(), GETDATE())
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With