GETUTCDATE (TSQL Function)

Returns the UTC current datetime.

Syntax

GETUTCDATE  ( )

Return Types

Returns datetime.

Remarks

With RSQL, GETUTCDATE returns exactly the same result as SYSUTCDATETIME.

However, with MS SQL Server, GETUTCDATE has lower subsecond precision than SYSUTCDATETIME.

Examples

PRINT SYSUTCDATETIME();
PRINT GETUTCDATE();

The result is:

2016-03-04 21:17:59.238137556
2016-03-04 21:17:59.238137556
RSQL, a simple alternative to Microsoft SQL Server