can anyone suggest me a good javascript month range picker with min and max date functionality.
I have googled it and not able to find a good one. I have seen a JQue
I suggest DateRangePicker, a lightweight month range picker which is very easy to customize
$('input').rangePicker({ minDate:[2,2009], maxDate:[10,2013] })
// subscribe to the "done" event after a date was selected
.on('datePicker.done', function(e, result){
console.log(result);
});
{
RTL : false,
closeOnSelect : true,
presets : [{
buttonText : '1 month',
displayText : 'one month',
value : '1m'
},{
buttonText : '3 months',
displayText : 'three months',
value : '3m'
},{
buttonText : '6 months',
displayText : 'six months',
value : '6m'
},{
buttonText : '12 months',
displayText : 'twelve months',
value : '12m'
}],
months : ['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec'],
minDate : [5,2006],
maxDate : [8,2013],
setDate : null
}