SQL Flow Field Guide

SYSUTCDATETIME

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

nondeterministic time source

What changes

Input
system clock or time zone of the server
Output or change
current date/time value
Return type
datetime2

Syntax at a glance

SYSUTCDATETIME ( )

Work example

Capture a high-precision UTC timestamp when the application stores UTC values.

Keep the UTC convention in the column and API contract because datetime2 has no offset field.

Check your work SYSUTCDATETIME returns datetime2 with seven fractional-second digits and is nondeterministic.

Practice SQL

Open in SQL Flow
SELECT SYSUTCDATETIME() AS utc_time;

Open Microsoft Learn for full syntax, permissions, and details for your version.