Order of day data
Syntax
$e1.isDateGreater($e2)
Description
Checks if the date e1
is greater than 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 date e1
is greater than the date e2
.
Examples
Simple date
date(2021, 10, 5).isDateGreater(date(2021, 10, 4))
Output: true
Simple same date
date(2021, 10, 5).isDateGreater(date(2021, 10, 5))
Output: false
Since the dates are equal, the first date is not greater than the second.
Date with time
dateTime(2021, 10, 5, 12, 24, 55).isDateGreater(dateTime(2021, 10, 5, 1, 24, 23))
Output: false
Since only to the day is compared and the time of day is not considered, false
is returned here.