Carrot reference
...
Fields
Data Types

Date

Represents an exact date (year, month, and day).

Properties

Property

Type

Description

Example

year

Number

The calendar year

1980

month

Number

The month of the year (1-12)

5

day

Number

The day of the month (1-31)

12

Type Conversions

If the following types are used in place of a Date:

  • Timestamp - uses the date of the timestamp after converting to the org's timezone
  • String - parses the date, including supporting relative dates

See also

date() - converts into a Date

Updated 07 Nov 2024
Doc contributor
Doc contributor
Did this page help you?