DATETIME_IS_SAME
Check if datetimes are equal

Description

Returns true if the two given datetimes are exactly the same, otherwise returns false.

Function signature

1
DATETIME_IS_SAME(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("2011-10-10T12:13:14Z", "2011-10-09T12:13:14Z")
false
DATETIME_IS_SAME("2011-10-10T12:13:14Z", "2011-10-10T12:13:14Z")
true
DATETIME_IS_SAME("2011-10-10T12:13:14Z", "2011-10-09T12:13:14Z", "year")
true
Export as PDF
Copy link