Skip to main content

Date Functions

Functions for working with dates and times.

Now

Returns the current date and time.

PropertyValue
CategoryDate Functions
Min Arguments0
Returnsdate

Description: Returns the current timestamp in UTC format.

Example:

Now() → 2026-01-15T14:30:00Z

Day

Extracts the day component from a date.

PropertyValue
CategoryDate Functions
Min Arguments1
Returnsinteger

Arguments:

#NameTypeDescription
0datetimedateThe date to extract from

Example:

Day(2026-01-15) → 15
Day(OrderDate) → day of month (1-31)

Month

Extracts the month component from a date.

PropertyValue
CategoryDate Functions
Min Arguments1
Returnsinteger

Arguments:

#NameTypeDescription
0DatedateThe date to extract from

Example:

Month(2026-01-15) → 1
Month(OrderDate) → month number (1-12)

Year

Extracts the year component from a date.

PropertyValue
CategoryDate Functions
Min Arguments1
Returnsinteger

Arguments:

#NameTypeDescription
0DatedateThe date to extract from

Example:

Year(2026-01-15) → 2026
Year(BirthDate) → birth year

Day Of Week

Returns the day of the week (0-6) from a date.

PropertyValue
CategoryDate Functions
Min Arguments1
Returnsinteger

Arguments:

#NameTypeDescription
0datetimedateThe date to extract from

Description: Returns 0 for Sunday, 1 for Monday, ..., 6 for Saturday.

Example:

Day Of Week(2026-01-15) → 4 (Thursday)

Add Days

Adds days to a date.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsdate

Arguments:

#NameTypeDescription
0Base DatedateStarting date
1Days to addintegerNumber of days (can be negative)

Example:

Add Days(2026-01-15, 30) → 2026-02-14
Add Days(OrderDate, 5) → expected shipping date
Add Days(Now(), -7) → one week ago

Add Hours

Adds hours to a timestamp.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsdate

Arguments:

#NameTypeDescription
0Base DatedateStarting timestamp
1Hours to addintegerNumber of hours (can be negative)

Example:

Add Hours(Now(), 24) → same time tomorrow
Add Hours(StartTime, 8) → end of shift

Add Minutes

Adds minutes to a timestamp.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsdate

Arguments:

#NameTypeDescription
0Base DatedateStarting timestamp
1Minutes to addintegerNumber of minutes (can be negative)

Example:

Add Minutes(Now(), 30) → 30 minutes from now
Add Minutes(MeetingStart, 60) → meeting end time

Add Seconds

Adds seconds to a timestamp.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsdate

Arguments:

#NameTypeDescription
0Base DatedateStarting timestamp
1Seconds to addintegerNumber of seconds (can be negative)

Add Month

Adds months to a date.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsdate

Arguments:

#NameTypeDescription
0Base DatedateStarting date
1Months to addintegerNumber of months (can be negative)

Example:

Add Month(2026-01-15, 3) → 2026-04-15
Add Month(ContractStart, 12) → contract end date (1 year)

Add Years

Adds years to a date.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsdate

Arguments:

#NameTypeDescription
0Base DatedateStarting date
1Years to addintegerNumber of years (can be negative)

Example:

Add Years(2026-01-15, 5) → 2031-01-15
Add Years(BirthDate, 18) → 18th birthday

Days Diff

Calculates the difference in days between two dates.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsfloat

Arguments:

#NameTypeDescription
0Start DatedateFirst date
1Target DatedateSecond date

Description: Returns Target Date minus Start Date in days. Result can be fractional and negative.

Example:

Days Diff(2026-01-01, 2026-01-15) → 14
Days Diff(OrderDate, Now()) → days since order
Days Diff(Now(), DueDate) → days until due

Hours Diff

Calculates the difference in hours between two timestamps.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsfloat

Arguments:

#NameTypeDescription
0Start DatedateFirst timestamp
1Target DatedateSecond timestamp

Minutes Diff

Calculates the difference in minutes between two timestamps.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsfloat

Arguments:

#NameTypeDescription
0Start DatedateFirst timestamp
1Target DatedateSecond timestamp

Months Diff

Calculates the difference in months between two dates.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsinteger

Arguments:

#NameTypeDescription
0Start DatedateFirst date
1Target DatedateSecond date

Years Diff

Calculates the difference in years between two dates.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsfloat

Arguments:

#NameTypeDescription
0Start DatedateFirst date
1Target DatedateSecond date

Example:

Years Diff(BirthDate, Now()) → age in years

Start Of Day

Returns midnight (00:00:00) of the given date.

PropertyValue
CategoryDate Functions
Min Arguments1
Returnsdate

Arguments:

#NameTypeDescription
0Base DateTimedateThe date/time

Example:

Start Of Day(2026-01-15T14:30:00) → 2026-01-15T00:00:00

Start Of Hour

Returns the beginning of the hour (XX:00:00).

PropertyValue
CategoryDate Functions
Min Arguments1
Returnsdate

Arguments:

#NameTypeDescription
0Base DateTimedateThe date/time

Example:

Start Of Hour(2026-01-15T14:45:30) → 2026-01-15T14:00:00

Start Of Month

Returns the first day of the month.

PropertyValue
CategoryDate Functions
Min Arguments1
Returnsdate

Arguments:

#NameTypeDescription
0Base DateTimedateThe date/time

Example:

Start Of Month(2026-01-15) → 2026-01-01T00:00:00

Ticks

Returns the ticks value from a timestamp.

PropertyValue
CategoryDate Functions
Min Arguments1
Returnsinteger

Arguments:

#NameTypeDescription
0DatedateThe timestamp

Description: Returns the number of 100-nanosecond intervals since January 1, 0001. Useful for precise time comparisons.


Parse DateTime

Converts a string to a date/time value.

PropertyValue
CategoryDate Functions
Min Arguments1
Returnsdate

Arguments:

#NameTypeDescription
0DateTime StringstringText to parse
1Format (optional)stringExpected format pattern

Example:

Parse DateTime("2026-01-15") → 2026-01-15T00:00:00
Parse DateTime("01/15/2026", "MM/dd/yyyy") → 2026-01-15T00:00:00

Convert From UTC

Converts a UTC timestamp to a target time zone.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsdate

Arguments:

#NameTypeDescription
0Base DatedateUTC timestamp
1Time zoneoptionSetTarget time zone

Description: Converts from Universal Time Coordinated (UTC) to the specified time zone. Time zone options include all standard time zones.


Convert To UTC

Converts a timestamp from a source time zone to UTC.

PropertyValue
CategoryDate Functions
Min Arguments2
Returnsdate

Arguments:

#NameTypeDescription
0Base DatedateLocal timestamp
1Time zoneoptionSetSource time zone