Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Incorrect date is set with service activity

SA-33724

Summary



User has a file listener whilch listens the files.

The file contains the date as one of the column. This date value is set to a Date Property Parse XML.

In a service activity, when performing a property set of the Date property to a Date time property, then the datetime value will become 19700101T00000.000 GMT instead of the actual datetime.


Error Messages



Not Applicable


Steps to Reproduce



1.Create a file listener, consume a file with date as input in one of the columns.

2.Parse the file. Set the date value to date property:


3.In a activity set the Date property to Date time property:




Root Cause



While parsing the xml, Date property has value in string format instead of internal date format.

Resolution



Convert String format Date into internal Date format:
Suggest Edit

Published February 20, 2017 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us