In my model-driven app, I'm opening a form from javascript using Xrm.Navigation.openForm with parameters to auto populate some fields. One of the fields is of type Date Only, with behavior set to "Date Only". I'm assigning the parameter value with a string formatted as "yyyy-MM-dd". When the form opens, the value is off by one day. For example, if it assign the parameter the value "2021-09-02", the form opens with the field value of "9/1/2021".
This seems like a bug to me. Anyone know of a fix other than adding code in the OnFormLoad event to add 1 day to each Date Only value?

Report
All responses (
Answers (