how do I convert a date time value as per the contact's time zone?

Hi,

I have added a new Date and time field "Best Time to Call" in incident entity. While browsing that field value via online CRM it shows me the time as per local timezone (i.e., it shows me as per India timezone as that incident was created by India user). However, while coding I am getting the value as per UTC time. I have tried a lot to find the timezone of that incident as well as contact but in vain.

Could you please let me know the code, how can I convert that date time value as per the contact's time zone?

Thanks & regards,

Biswa

Related
Recommended