Try OpenEdge Now
skip to main content
BPM Events User's Guide
The rule language : Time operations and expressions : Extracting elements of a date
 

Extracting elements of a date

The date object in BPM Events represents a specific instant in time with precision measured down to the second. Given a date object, it is possible to extract each of its fields (year, month, day, hour, minute and second), as an integer value, using projection functions for each field.
For example, if the value of EVT_1.date is:
YEAR:1998/MONTH:12/DAY:15/HOUR:18/MIN:30/SEC:5
Then the following numerical equations are true:
EVT_1.date.year = 1998
EVT_1.date.month = 12
EVT_1.date.day = 15
EVT_1.date.hour = 18
EVT_1.date.minute = 30
EVT_1.date.second = 5