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 ( ) SYSDATE()Examples
Code:
SELECT SYSUTCDATETIME() as SYS_UTC_DATETIME;Result:
SYSTEM_UTC_DATETIME |
---------------------------+
2023-02-02 20:59:28.0926502|Code:
SELECT SYSDATE() AS SYSTEM_UTC_DATETIME;Result:
SYSTEM_UTC_DATETIME |
-------------------------+
2023-02-02 21:02:05.557 |Last updated
Was this helpful?