Question
Tranzformd
AU
Last activity: 23 Mar 2020 12:12 EDT
Date and time to Pega TimeStamp
Is there a way to convert a particular date and time in server time zone to Pega DateTimeStamp.
Example: I would like to convert 20th Dec 2019 9AM EST to Pega TimeStamp which is in the format 'yyyyMMddThhmmss.SSS GMT'.
Appreciate the quick help.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi,
You can use FormatDateTime
https://community.pega.com/sites/default/files/help_v73/concepts/concepts2/conceptsdatetime.htm
Tranzformd
AU
Thanks for good concepts but it says there isnt a way to do so
accenture
SG
Hi,
you may try to use the function @FormatDateTime. Timestamp should be able to follow that format.
Tranzformd
AU
@FormatDateTime converts TimeStamp to desired format, I need converse
Epam
IN
Hi @SANTOSH,
Could you please check the Activity pzPopulateDefaultDateTimeFormats step 5& 6 which is taking the input from CSV and converting to pega datetime format.
This might help you, need to write custom code to achieve this requirement.
Thanks,
Gopi
Tranzformd
AU
Sorry Gopi but I could not find pzPopulateDefaultDateTimeFormats on 7.3 Pega platform. Is it got added in later version of Pega.
Swedbank AB
SE
Hello Santhosh,
Have you tried searching for it from the global search with old prefix?
Example: old:pzPopulateDefaultDateTimeFormats
Thank you,
Pawan
Tranzformd
AU
got that , thanks
Wells Fargo
IN
Hi Santhosh,
I do have the similar requirement. May I know the resolution, I checked the above activity looks like Java code in it.
Thanks.