GMT Conversion

I have a requirement to convert specific date time to GMT format and the format in which i am getting the date is 2019-08-22,6.30 pm.How to convert this to GMT format.

kindly help in resolving this

***Edited by Moderator Marissa to update platform capability tags****


Keep up to date on this post and subscribe to comments

August 22, 2019 - 2:01pm


I haven't tried this personally, but the below post looks like it has some information that could be helpful.

Hope this helps!


August 23, 2019 - 12:03am

Hi Praveen,

You can use below function.this could be helpful.

java.util.Date myDate = PRDateFormat.parse(locale, TimeZone, dateFormat, datestring)

Eg:  java.util.Date myDate = PRDateFormat.parse("", "EST", "yyyy-MM-dd hh:mm:ss", "2018-03-02 07:53:16");

Result: 20180302T125316.000 GMT - DateTime Property



August 26, 2019 - 12:37am
Response to bhars1

Is this function already available or need to create a new

if so kindly provide me with sample steps so that i can generate the function

August 26, 2019 - 1:16am
Response to PraveenP7456