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?

The datepicker needs to also be re-set when you reset the form.
Attach a setvalue action for the datepicker on the same event you are using to reset your form on modal hide, so set its value to todays date:

1 Like

Thanks for the solution @Teodor.

One more observation - if there is a form RESET button, add a mouse>click dynamic event and create the same set value action for date picker text box for correct date to be selected on the picker.

@Teodor @George

Marzio, I really don’t understand what your issue is.
I provided you a solution already which has been tested and works perfectly fine.