Skip to main content
Best answer by jensc

Hello @Sathishkumar_C,

 

Just for clarification: Dates are converted into browser time zone only when shown, for example in the results or when passed into a mashup. It is "actually" still in UTC (or whatever the server time zone is set to).

 

So when logging a new Date() value, it will present as UTC, or when passing it to some other service, it will also be in UTC.

 

Regards,

Jens

2 replies

19-Tanzanite
May 31, 2023

Hi @AP_10343008 

 

Could you please explain your use case 

 

/VR

17-Peridot
May 31, 2023

Usaully new Date() will return the date and time with respect to browser time zone.

jensc17-PeridotAnswer
17-Peridot
May 31, 2023

Hello @Sathishkumar_C,

 

Just for clarification: Dates are converted into browser time zone only when shown, for example in the results or when passed into a mashup. It is "actually" still in UTC (or whatever the server time zone is set to).

 

So when logging a new Date() value, it will present as UTC, or when passing it to some other service, it will also be in UTC.

 

Regards,

Jens

17-Peridot
May 31, 2023

that's what i meant. thanks for the detailed clarification.