Newer Version Available

This content describes an older version of this product. View Latest

now()

Returns the current datetime in UTC. This function is only valid in a foreach statement.

Syntax

now()

Usage

This function is commonly used with daysBetween(​), date_diff(​), and date_to_string().

Example

How long ago was each opportunity created, in weeks? Use date_diff(), datepart = week, and now().

Example

What is the date today? Use now() inside date_to_string().