How to change date format in Daterangepicker
You can set the required format during script initialization:
$(function() {
$("#your_input_id").daterangepicker(
{
opens: 'left',
locale: {
format: 'DD.MM.Y' //set up date format here
}
},
function(start, end, label) {
});
});
html:
<input name="your_input_name" id="your_input_id" value="" />
Comments