Posted: 1 Oct 2018 9:10 EDT Last activity: 4 Oct 2018 2:10 EDT
EDT Datetime String to EST conversion
We are receving a DateTime string in London time zone (GMT+1) from a Service .(20180928195125) and we have to show that on the PEGA UI in EST (GMT-4) Format. Can someone help me out on how to achieve this . We have only GMT to EST conversion functions in pega using FormatDateTime(). For time being i am using substring to add (20180928+ T+ .000) to convert into datetime and passing this param to AddToDate and subtracting 1hour . to get the GMT time is this the correct approcah or do we have any better way ?.
***Updated by moderator: Lochan to update platform capability***
If you could open FormatDateTime(),open the History Tab in the description it's given that Format/Reformat a DateTime string using the specified parameters.Though this function is to format GMT to EST,you can try giving the parameters based on your constraints.
Or else overriding the function and passing parameters of EDT Datetime String to EST might work fine too.