Solved
Forum Discussion
VaishnaviB
2 years agoNew Contributor
Hi Supratim ,
Can you please help me on this.
I have tried as mentioned
Date.now().toLocaleDateTimeString({“format”:“YYYY-MM-dd'T'HH:mm:ss z”,“timeZone”:“IST”})
which is giving me in UTC as below
_snaptype_datetime:"2024-03-12T09:15:05.038 UTC"
ramaonline
2 years agoAdmin
Try the below expression:
Date.now().toLocaleDateTimeString({"timeZone":"Asia/Kolkata", "format":"yyyy-MM-dd HH:mm"})
Reference:
For the {"timeZone":"zoneValue"} option, you can use the Canonical ID value from Joda-Time.