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 database system UTC date and time, in a 'YYYY-MM-DD hh:mm:ss.mmm' format.

Syntax

GETUTCDATE()

Technical Details

Works in: SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

❮ SQL Server Functions