The SYSDATETIME()
function returns the current date and time as a datetime2(7) value. This value is derived from the operating system of the computer that the instance of SQL Server is running on.
This article provides examples of the SYSDATETIME()
function, including how you can use it with other functions to return the value you’re interested in.