08/09/2023 12:17 AM
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')}
Solved! Go to Solution.
08/09/2023 12:21 AM
@saurabhpad Which connector you are using to add the current date in CP35?
08/09/2023 12:22 AM
we are using rest connector to update users CP value
08/09/2023 12:34 AM
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)