CURRENT_DATETIME

Returns the current date and time as of the specified or default timezone.

Sample usage

CURRENT_DATETIME()

CURRENT_DATETIME("America/Los_Angeles")

Syntax

CURRENT_DATETIME([time_zone])

Parameters

  • time_zone - Optional. A text field or expression representing the timezone. This parameter is a string representing the timezone to use. If no timezone is specified, the default timezone UTC is used. See Timezone definitions for information on how to specify a time zone. If the time_zone parameter evaluates to NULL, this function returns NULL.

Return data type

Date & Time

Examples

Formula Today's Date and time Example result
CURRENT_DATETIME() January 10, 2020 10:38 AM 2020-1-10 10:38:47

Notes

This function is not available for compatibility mode date types.

Related resources

Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue