Date Picker Value Does Not Match Textbox Value

Hi.
I have a date picker inside a modal to show current date. And, every time the modal is hidden, the form is reset.
So, next time modal is opened, current date value is shown.

dmx-bind:value=“varCurrentDate.datetime”

If the date is changed as below, value shown is correct.
image

Now, if I simply close and open the modal again, text box value is reset to current date, but the picker still shows previous selected date - 18th Jan in this case:
image

How to set the pop-up date picker’s value to show the value as shown in the text box?

Community Page
Last updated: