We have an on premise tenant and using unified interface. I have a form which has a date field and its behaviour is set as User Local.
Date Field Setting On the same form I have a web resource that displays the same date field data on form load. I am using parent.Xrm.Page.getAttribute("fieldname").getValue() to get the date field value on web resource.
I know the date is getting stored in UTC format. It displays fine on the form but on the web resource it is one day behind.
Is it the timing issue that form has got the date in UTC format but before it converts it to local format, web resource reads it.
Please advise.