inLastMonths inLastMonths

Returns true if a given date or dateTime is between now and now - delta months.

Category

Date

Function syntax

inLastMonths(<dateTime>,<delta>)

Parameters

Parameter
Type
date time
dateTime
delta
integer

Signatures and returned type

inLastMonths(<dateTime>,<integer>)

Returns a boolean.

Examples

inLastMonths(toDateTime('2023-12-12T01:11:00Z'), 4)

Returns true.

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76