SYSUTCDATETIME

Description

Returns a datetime2(7) value that contains the date and time of the computer on which the instance of SQL Server is running. (SYSUTCDATETIME in Transact-SQL).

Sample Source Pattern

Syntax

SYSUTCDATETIME ( )  

Examples

Code:

SELECT SYSUTCDATETIME() as SYS_UTC_DATETIME;

Result:

SYSTEM_UTC_DATETIME        |
---------------------------+
2023-02-02 20:59:28.0926502|

Last updated