Date functions
The functions for attributes with datatype Date require a long value as time stamp, in the UNIX Epoch time format 1234567890000
, and a string value as calendar date, in the ISO extended format YYYY-MM-DD
.
Warning Using negation (!) at the beginning of any function can cause unexpected validation results.
Function | Description |
---|---|
now() | Checks whether the time stamp returns the current date. |
isPast (Timestamp) | Checks whether the time stamp is in the past (before the system date). |
isFuture (Timestamp) | Checks whether the time stamp is in the future (after the system date). |
isEqual (Timestamp, Date) | Checks whether the time stamp is the same as the date. |
isLess (Timestamp, Date) | Checks whether the time stamp is less than the date. |
isLessEq (Timestamp, Date) | Checks whether the time stamp is less than or equal to the date. |
isGreater (Timestamp, Date) | Checks whether the time stamp is greater than the date. |
isGreaterEq (Timestamp, Date) | Checks whether the time stamp is greater than or equal to the date. |
isBetween(Timestamp, Date1, Date2) | Checks whether the time stamp is greater than the first date but smaller than the second date. |