The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Now

Returns the current system date and time

Now(1)

OrdinalTypeDescription
1booleanIndicates whether to retain the time of the send. A value of 1 or true retains the time, and a value of 0 or false does not retain the time.

In this sample code, the variable receives the value of the current system time.