GETUTCDATE
GETUTCDATE() AS [timestamp]
Section titled “GETUTCDATE() AS [timestamp]”Example
Section titled “Example”SELECT GETUTCDATE() AS CurrentUTCDate;Output
Section titled “Output”CurrentUTCDate-------------------------------2022-04-19 13:30:50.373Explanation
Section titled “Explanation”The GETUTCDATE() function fetches the current UTC date and time from the SQL Server. The code example uses this function to return the current UTC date and time, which is displayed under the CurrentUTCDate column in the output. The actual date and time displayed will depend upon the current system timestamp at the time of execution.