Thursday, September 20, 2018

How to set datetime value in Pega

In Pega, if we have to set date, it picks only a specific format (yyyymmddThhmmss.SSS GMT)

Context: 

LastUpdateDateTime is a property of type "DateTime", and we need to do property-set from activity with a value 1989-09-18, Pega accepts only a specific format (yyyymmddThhmmss.SSS GMT) in Pega without hyphens(-) or slash (/)

yyyyyear
mmmonth
ddday
TDelimiter
hhhour
mmmonth
ssseonds
.Dot
SSSMicro Seconds
" "Space
GMTGMT Timezone

Answer:

LastUpdateDateTime = 19890918T053347.789 GMT(Correct)
LastUpdateDateTime = 1989-09-18T053347.789 GMT  (InCorrect)
LastUpdateDateTime = 18/09/1989T053347.789 GMT  (InCorrect)

No comments:

Post a Comment


HowToPega : All rights reserved and the contents are copyrighted to Pavan Kumar Naidu