502
Views
1
Comments
How to convert client side CurrDateTime() to UTC format using JavaScript?
Question

Hi,


Can you please let me know How to convert client side CurrDateTime() to UTC format using JavaScript?

Server CurrDateTime is already in UTC format but client datetime I want to format in below format.

yyyy-MM-ddTHH:mm:ss+-HH:mm (2019-08-28T13:42:36+00:00)


Thanks,

Dileep

2022-07-12 16-41-57
Pedro Costa

Hi Dileep,


You can use this component https://www.outsystems.com/forge/component-overview/2199/timezonemobileutils

and you can see the javascript used in the GetUTCDate function.


Regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.