Support Article

Date type property does not accept two-digit year

SA-28289

Summary



An inbound service delivers a six-digit date in YYMMDD format to set into a Date property through an activity. In Pega 7.1.9, the Property-Set step of the activity fails because it expects an eight-digit date in YYYYMMDD format.

Error Messages



"String not a Date: 160826"

Steps to Reproduce

  1. Create a Date or DateTime property in Pega 7.1.9. 
  2. Create an activity to execute a Property-Set step to set the Date or DateTime property with YYMMDD date string.
  3. Run the activity.

Root Cause



As part of changes made for BUG-115779, support for converting six-digit date string to correct date is lost.

Resolution



Apply HFix-29421.

Published September 22, 2016 - Updated October 12, 2016

Have a question? Get answers now.

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