Skip to main content


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

Parsing date, dateTime, and time values in a Parse XML rule

Updated on April 6, 2022

XSD date, dateTime, and time values use a special formatting that is distinct from Pega Date, dateTime, and TimeOfDay property value formatting. For these XSD types, you must specify dateTime, date, or time as the XSD base type for the property to parse correctly.

The specified value informs the parse rule to convert the value to the Pega format before mapping it to the clipboard. Date values that must be converted to the Pega date format include the following examples:
  • 2021-07-20
  • 05:30:15
  • 2020-01-01T09:00:00
  1. In the navigation pane of Dev Studio, click Records.
  2. Expand the Integration-Mapping category, and then click Parse XML.
  3. Click the row of a parse XML rule to open it.
  4. On the Mapping tab, double-click an element to open the User Data window.
  5. On the Type tab of the User Data window, in the XSD Base Type, enter the following values based on what your XML value looks like and the property you are mapping it to.
    • If the format of the XML value looks like 2020-01-01T09:00:00Z, set the XSD Base Type value to dateTime to map the value to a Pega DateTime property.
    • If the format of the XML value looks like 2020-01-01, set the XSD Base Type value to date to map the value to a Pega Date property.
    • If the format of the XML value looks like 09:00:00Z, set the XSD Base Type value to time to map the value to a Pega TimeOfDay property.
    If the XSD Base Type field is left blank, no conversion is performed and the value is mapped to the clipboard as is.
    Note: The following fields are typically set when the parse rule is auto-generated from an XSD, and have no effect on parsing.
    • Type Name
    • Type Namespace
    • Default Value
    • Is SOAP array
  6. Click OK.
  7. Click Save.
  • Previous topic Configuring XML tree node properties for a Parse XML rule
  • Next topic Defining a page for a Parse XML rule

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