In this post explains how to use the GETUTCDATE function in SQL Server (Transact-SQL) with syntax and examples.
In SQL Server (Transact-SQL), the GETUTCDATE function returns the current UTC date and time.
The syntax for the GETUTCDATE function in SQL Server (Transact-SQL) is:
GETUTCDATE ( )
There are no parameters or arguments for the GETUTCDATE function.
The GETUTCDATE function can be used in the following versions of SQL Server (Transact-SQL):
Let's look at some SQL Server GETUTCDATE function examples and explore how to use the GETUTCDATE function in SQL Server (Transact-SQL).
For example:
SELECT GETUTCDATE();
Output: '2014-04-29 00:27:58.657'