Here is my code:
$(function () {
$("#datepicker").datepicker({ dateFormat: 'DD-MM-YY' });
});
And the datetime picker is shown, but in format mm/dd/yyyy. Why is it not working?
An input element that is to be updated with the selected date from the datepicker. Use the altFormat option to change the format of the date within this field.
$("#txtDate"). datepicker({ dateFormat: 'yy-mm-dd' });
To change the position of the jQuery UI Datepicker just modify . ui-datepicker in the css file. The size of the Datepicker can also be changed in this way, just adjust the font size.
Try just format option not dateFormat
$('#datepicker').datepicker({
format: 'dd-mm-yyyy'
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With