Equality on daily data
Syntax
$e1.isDateEqual($e2)
Description
Checks if the date e1 is equal to the date e2. Only whole days are compared and no clock times are taken into account.
Is equivalent to
$e1.day() == $e2.day()
Parameter
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| e1 | Business object | Date to be compared with e2. |
yes | |
| e2 | Business object | Date to be compared with e1. |
yes |
Return value
Type: Boolean
true, if the result of the evaluation says that the two dates are identical to the day.
Examples
Simple date
date(2021, 10, 5).isDateEqual(date(2021, 10, 5))
Output: true
Date with time
dateTime(2021, 10, 5, 12, 24, 55).isDateEqual(dateTime(2021, 10, 5, 15, 24, 23))
Output: true
Since only the day is compared and the time of day is ignored, true is returned here as well.