THE WORLD'S LARGEST WEB DEVELOPER SITE

SQL Server GETUTCDATE() Function

❮ SQL Server Functions

Example

Return the current UTC date and time:

SELECT GETUTCDATE();
Try it Yourself »

Definition and Usage

The GETDATE() function returns the current UTC date and time, in a 'YYYY-MM-DD hh:mm:ss.mmm' format.

Tip: The UTC date and time is determined by the operating system settings.

Syntax

GETUTCDATE()

Technical Details

Works in: SQL Server 2014, SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, SQL Server 2005

❮ SQL Server Functions