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:

IN -> SqlServer_01.sql
SELECT SYSUTCDATETIME() as SYS_UTC_DATETIME;

Result:

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

Known Issues

No issues were found.

No related EWIs.

Last updated