Support Article
Empty date fields default to 01/01/1970
SA-38409
Summary
Default date value (01/01/1970) displays on submitting an empty date field.
Error Messages
Not Applicable
Steps to Reproduce
- Create a service to input a date element and output a date as a response.
- Input a blank value in the date field.
- Run the service.
Root Cause
When the date is empty, the XML Stream rule generates a default date (epoch date); and the Service Response displays 1970-01-01.
Resolution
Perform the following local-change:- Apply HFix-27413.
- For the XML Stream rule to return an empty date value, set the Dynamic System Settings (DSS) (disableEpochDate and disableEpochDateTime on Pega-IntegrationEngine) to True.
- Change the DateTime property to Date property.
Published November 29, 2018 - 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.