xxxxxxxxxx
bootstrap datepicker
//newer
In JavaScript, set the datepicker's assumeNearbyYear attribute to true, like this:
$("#dp").datepicker({
assumeNearbyYear: true
});
//ver 1.4
$(this).datepicker({
dateFormat: 'dd-mm-yy',
prevText: '<i class="fa fa-chevron-left"></i>',
nextText: '<i class="fa fa-chevron-right"></i>',
minDate: "01-01-2021",
maxDate: "01-12-2090"
});
xxxxxxxxxx
in jquery datepicker,
https://api.jqueryui.com/datepicker/#option-yearRange