Question

4
Replies
83
Views
Saravanan M (SaravananM5311)
CNO Financial Group Inc

CNO Financial Group Inc
IN
SaravananM5311 Member since 2019 5 posts
CNO Financial Group Inc
Posted: May 27, 2021
Last activity: June 17, 2021
Posted: 27 May 2021 22:55 EDT
Last activity: 17 Jun 2021 2:13 EDT

How to convert UTC date time string of inbound email to Pega date time format?

Hi, I have requirement where we need to capture the received date of the inbound email into a doc that's getting attached in the Work object. The received date of the inbound email is a string and in the format "Mon May 24 02:06:59 UTC 2021".  Tried @DateTime.FormatDateTime() to convert this, "Mon May 24 02:06:59 UTC 2021" --> 5/24/2021 02:06:59 but it's not working. Can you please suggest if there's any way we can do this conversion? Thanks, Saravanan

***Edited by Moderator: Pooja Gadige to change content format from Discussion to Question, add platform capability tags***
Pega Platform 7.4 User Experience Decision Management