Hello everyone, I'm making an edit profile form, and I'm using jquery iu datepicker to select DOB, now when user edits its data he/she has already some date in the profile field, now if the user wanted to change the date the datepicker pops up, how can I make the date from profile field to be selected on the date picker,
or simply how can I make datepicker display specific date when opened here is my current script:
$('#member_dob').datepicker({
changeMonth: true,
changeYear: true,
defaultDate: ,
yearRange: '1970:1992',
dateFormat: 'yy-mm-dd',
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun','Jul','Aug','Sep','Okt','Nov','Dec'],
dayNamesMin: ['Ned', 'Pon', 'Uto', 'Sri', 'Čet', 'Pet', 'Sub']
});
So for instance if my dob is 20.05.1987 , how could I set datepicker to display that date when opened, or just month and a year