***Update use the format option not dateFormat
hello, you already have the dateFormat option.
The format you already have on your script is
dd=day,
mm=month,
yy =year,
example date with your current format is : 31/12/2020
$(document).ready(function() {
var year = (new Date).getFullYear();
$('.input-daterange').datepicker({
format: "dd-mm-yyyy",
autoclose:true,
minDate: new Date(year, 0, 1),
maxDate:new Date(year, 11, 31)
});
});
you can change date format for example :
"mm-dd-yyyy"
or
"mm/dd/yyyy"