Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

GETUTCDATE

Example

Retrieve the current UTC date and time.

SELECT GETUTCDATE();

Definition and Usage

GETUTCDATE() returns the current date and time in Coordinated Universal Time (UTC) from the database system, formatted as ‘YYYY-MM-DD hh:mm.mmm’.

Syntax

GETUTCDATE()

Technical Details

Return type:

datetime

Works in:

 SQL Server (from 2008 onward), Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse