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:

Published February 20, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.