Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Parsing dates

Updated on March 4, 2022

The rules defined in this section apply to Transaction Date and Value Date.

Pega Smart Investigate for Payments Implementation Guide

LocateStep

The parser recognizes dates in the following formats:

MMM =JAN, FEB, …, DEC; MM or M is a numeric value between 1 and 12.

DM YYDD.M.YYD-MMM-YYM-D-YY
DMM YYDD.M.YYYYDMMMYYYYM-D-YYYY
DMMM YYDD.MM.YYD-MMM-YYYYMM.D
DMMM YYYYDD.MM.YYYYD-MM-YYMM.D.YY
D.MDD.MMM.YYD-MM-YYYYMM.D.YYYY
D.M.YYDD.MMM.YYYYD-M-YYMM.DD.YY
D.M.YYYYDD/MD-M-YYYYMM.DD.YYYY
D.MMDD/M/YYM.DMM/D
D.MM.YYDD/M/YYYYM.D.YYMM/D/YY
D.MM.YYYYDD/MM/YYM.D.YYYYMM/D/YYYY
D.MMM.YYDD/MM/YYYYM.DDMM/DD/YY
D.MMM.YYYYDD-MM.DD.YYMM/DD/YYYY
D/MDDMMMYYM.DD.YYYYMM-D
D/M/YYDD-MMM-YYM/DMM-DD-YY
D/M/YYYYDDMMMYYYYM/D/YYMM-DD-YYYY
D/MMDD-MMM-YYYYM/D/YYYYMM-D-YY
D/MM/YYDD-MM-YYM/DDMM-D-YYYY
D/MM/YYYYDD-MM-YYYYM/DD/YYMMMDD YY
DD M YYDD-M-YYM/DD/YYYYMMMDD YYYY
DD MM YYDD-M-YYYYM-DYY.MM.DD
DD MMM YYD-MM-DDYYMMDD
DD MMM YYYYD-MMM-DD-YYYYYY.MM.DD
DD.MDMMMYYM-DD-YYYYYYYYMMDD

Where one of the following words optionally appears in the preceding n characters (a configurable value), the located date is processed as a transaction date:

DTSENT100205
DATEDON103INSTRUCTION
DATEOF202PAYMENT
DTDDATD200P/O
DDMT201FOR
POSTEDORDER203P.O.

However, if one of the following optional words appears in the preceding n characters, the located date is processed as a value date:

  • VALUE
  • VAL
  • VALUED
  • V/D
  • V.D.

Manipulate/TranslateStep

If a date is found, it is converted to the standard Java DATE format (not DATETIME).

Test/ValidateStep

The following test conditions are possible as part of a When rule:

Is{Located Date} < $TODAYIs{Located Date} = $TODAY
Is{Located Date} <= $TODAYIs{Located Date} > $TODAY
Is{Located Date} >= $TODAYIs{Located Date} < {.DateProperty}
Is{Located Date} = {.DateProperty}Is{Located Date} <= {.DateProperty}
Is{Located Date} > {.DateProperty}Is{Located Date} >= {.DateProperty}

Map/Output Step

If the Test/Validate step returns TRUE, or no test/validate step is used and data has been successfully located, the output is saved as a property.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us