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.

Date Time Functions

These functions allow access to data and time data information via server-side JavaScript for use in content and send contexts.

Load the core library using this sample code:

Use the associated sample code examples as models to construct your own server-side JavaScript code.