Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

want to convert UTC date to PST

saurabhpad
New Contributor II
New Contributor II

Hi,

We are updating users cp35 with current date, we are using below syntax. CP35 is updated with current date but timing is UTC. We want to convert this time to PST. Is there any way to convert it.

${Calendar.getInstance().getTime().format('yyyy-MM-dd')}

3 REPLIES 3

pmahalle
All-Star
All-Star

@saurabhpad Which connector you are using to add the current date in CP35?


Pandharinath Mahalle(Paddy)
If this reply answered your question, please Accept As Solution to help other who may have a same problem. Give Kudos 🙂

saurabhpad
New Contributor II
New Contributor II

we are using rest connector to update users CP value

armaanzahir
Valued Contributor
Valued Contributor

Hi @saurabhpad ,

 

Can you try using the following:

${new Date().format('MM-dd-yyyy hh:mm a',TimeZone.getTimeZone('PST'))}

Below is a list of all available timezones:

What are the Java TimeZone IDs? | Gary Gregory (wordpress.com)

 

 

Regards,
Md Armaan Zahir