DATETIME_IS_SAME_OR_AFTER
Check if a datetime is the same or after another

Description

Returns true if the first datetime is the same or after the second datetime, otherwise returns false.

Function signature

1
DATETIME_IS_SAME_OR_AFTER(date1: String, date2: String, precision: String) => Boolean
Copied!
Parameter
Description
Date 1
Date 1
Date 2
Date 2
Precision
Precision for comparing ("year","month","week","isoWeek","day","hour","minute","second", null)

Examples

Formula
Return value
DATETIME_IS_SAME_OR_AFTER("2011-10-10T12:13:14Z", "2011-10-09T12:13:14Z")
true
DATETIME_IS_SAME_OR_AFTER("2011-10-09T12:13:14Z", "2011-10-10T12:13:14Z")
false
DATETIME_IS_SAME_OR_AFTER("2011-10-10T12:13:14Z", "2011-10-10T12:13:14Z")
true
DATETIME_IS_SAME_OR_AFTER("2012-10-10T12:13:14Z", "2011-10-09T12:13:14Z", "year")
true
Export as PDF
Copy link