bootstrap-datetimepicker icon indicating copy to clipboard operation
bootstrap-datetimepicker copied to clipboard

How to know if user click on 'prev' or 'next' button for previous/ next month

Open tenznhok opened this issue 6 years ago • 0 comments

Hi, Is there a way to know if user click on prev/next button in the calendar? I know the on('changeDate') is detected if user change the selected date. But if user click on the << or >> in the calendar, how do I know it, and also how to detect what month is it showing.

 $("#dateTimePickerInput").datepicker({
        endDate: new Date,
        todayHighlight: true}
    ).on('changeDate', function (e) {});

tenznhok avatar Jun 08 '18 14:06 tenznhok