Closed onx2 closed 5 years ago
Tested with dateLimit set to 30 days, max date is the current moment. Am I missing something?
Below are the settings for my daterangepicker:
$('#time-period').daterangepicker({ timePicker: timePicker, timePicker24Hour: true, autoclose: false, autoApply: false, locale: { format: format }, alwaysShowCalendars: true, startDate: start, endDate: end, minDate: minDate, maxDate: moment(), dateLimit: { days: '30' }, ranges: { 'Last 3 Hours': [moment().subtract(3, 'hours'), moment()], 'Last 6 Hours': [moment().subtract(6, 'hours'), moment()], 'Last 24 Hours': [moment().subtract(24, 'hours'), moment()], 'Last 3 Days': [moment().subtract(3, 'days'), moment()], 'Last 7 Days': [moment().subtract(7, 'days'), moment()], } });
Tested with dateLimit set to 30 days, max date is the current moment. Am I missing something?
Below are the settings for my daterangepicker:
$('#time-period').daterangepicker({ timePicker: timePicker, timePicker24Hour: true, autoclose: false, autoApply: false, locale: { format: format }, alwaysShowCalendars: true, startDate: start, endDate: end, minDate: minDate, maxDate: moment(), dateLimit: { days: '30' }, ranges: { 'Last 3 Hours': [moment().subtract(3, 'hours'), moment()], 'Last 6 Hours': [moment().subtract(6, 'hours'), moment()], 'Last 24 Hours': [moment().subtract(24, 'hours'), moment()], 'Last 3 Days': [moment().subtract(3, 'days'), moment()], 'Last 7 Days': [moment().subtract(7, 'days'), moment()], } });