I’m applying a datepicker to a form field with this date format: 'dd/mm/yy' so when the user selects a date it will be placed in that format in the field.
The problem is that field is pre-filled with a value in format yy-mm-dd, and the datepicker is showing the today date.
How can I initialize the datepicker with the field value?
I have previously used the datepicker from jQuery Tools, that automatically initializes the datepicker from the field value, but the one from jQuery UI does not have that useful functionality.
The way to do it is:
Explanation: