I have latest version of both WordPress and the plugin. The datepicker always changes date format to dd/mm/yy no matter what I do, if I type manually in dd-mm-yy format, it goes back with slashes. I changed one of js file and it’s fixed working for me now.
I changed
$('#startdate_picker').datepicker({dateFormat: 'dd-mm-yy'});
$('#enddate_picker').datepicker({dateFormat: 'dd-mm-yy'});
to
$('#startdate_picker').datepicker({format: 'dd-mm-yyyy'});
$('#enddate_picker').datepicker({format: 'dd-mm-yyyy'});
I don’t know why it’s behaving like this, jquery ui documentation doesn’t also have the parameter like this but I found solution to this issue here
-
This reply was modified 4 years, 6 months ago by Sohan Zaman.