Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
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!
![](https://accounts.pega.com/sites/default/files/pega-user-image/280/REG-280155.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/280/REG-280155.png?source=PUMINIT)
Pegasystems Inc.
IN
Hi,
You can use FormatDateTime
https://community.pega.com/sites/default/files/help_v73/concepts/concepts2/conceptsdatetime.htm
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tranzformd
AU
Thanks for good concepts but it says there isnt a way to do so
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
accenture
SG
Hi,
you may try to use the function @FormatDateTime. Timestamp should be able to follow that format.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tranzformd
AU
@FormatDateTime converts TimeStamp to desired format, I need converse
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
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
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tranzformd
AU
Sorry Gopi but I could not find pzPopulateDefaultDateTimeFormats on 7.3 Pega platform. Is it got added in later version of Pega.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Swedbank AB
SE
Hello Santhosh,
Have you tried searching for it from the global search with old prefix?
Example: old:pzPopulateDefaultDateTimeFormats
Thank you,
Pawan
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tranzformd
AU
got that , thanks
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
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.