i build a form that contain month range. i am using daterangepicker bootstrap to do it. For example from Jan to April, but i cannot display month view only using viewMode: 'months', or may be there is another code to display month only?
This is my js code:
$(function () {
$('#growthrange').daterangepicker({
format: 'MM/yyyy',
viewMode: 'months',
minViewMode: 'months',
autoclose: true,
locale: {
applyLabel: 'Apply Date',
fromLabel: 'First Date',
toLabel: 'Second Date',
monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
firstDay: 1
}
},
function (start, end) {
$('#growthrange span').html(start.toString('MMMM, yyyy') + '-' + end.toString('MMMM, yyyy'));
});
Help please!