All Products
Search
Document Center

MaxCompute:GETDATE

Last Updated:May 08, 2025

Returns the current system time. MaxCompute uses UTC+8 as the standard time zone.

Syntax

datetime getdate()

Return value

The current date and time are returned, which are of the DATETIME type.

Note

In MaxCompute SQL, GETDATE always returns a fixed value. The time is accurate to the second. If you enable the MaxCompute V2.0 data type edition, the time is accurate to the millisecond.

Related functions

GETDATE is a date function. For more information about functions related to date computing and conversion, see Date functions.