This function compares two Date or Time or Date-time type values.
It returns "true" if the first value is lower than (before) or equal to the second.
Two values of the following types can be compared:
- Date and Date,
- Time and Time,
- Date-time and Date-time,
- Date and Date-time,
- Time and Date-time.
The Time/Date comparison does not make sense.
Parameters
Date/Time/Date-time |
temporalVal1 |
Temporal value |
Mandatory |
Date/Time/Date-time |
temporalVal2 |
Temporal value |
Mandatory |
For example
<#assign temporalVal1 = .now /> <#assign temporalVal2 = "1995-07-18"?date.xs /> temporalVal1 > temporalVal2 : ${ hardisCore.isLteDateTime(temporalVal1, temporalVal2)}