In SQL Sever, when we need to get the system date time, then generally, we use GETDATE() and SYSDATETIME() to get the system date time. Most of the developers use these functions but aren't aware of the the difference b/w these two. In this blog, we will learn about the difference b/w both the functions.
GETDATE()
SYSDATETIME()

After examining both functions, we see that there is a difference in fractional second part of result. GETDATE function doesn't return the system time zone offset but SYSDATETIME() returns the system time zone offset.

Param MatharuPosted Oct 17, 2017, 8:13 AM
Hello Pankaj, it's SYSDATETIMEOFFSET() and not SYSDATETIME() that returns the system time zone offset.
SubashPosted Sep 7, 2016, 7:45 AM
Good one pankaj
Rajeev PunhaniPosted Sep 1, 2016, 11:31 PM
Good One
Bhuvan PandeyPosted Aug 30, 2016, 8:16 AM
Good one
Praveen KumarPosted Aug 28, 2016, 7:02 AM
Very Nice Pankaj Kumar Choudhary