Open AchinthaReemal opened 5 years ago
Any updates on this? Also curious
Any updates on this?
if you are fine with only changing the initial range, a workaround could be:
const offsetInitialMonth = useCallback(node => {
if (node !== null) {
node.dateRange.calendar.changeShownDate(moment().subtract(1, "month").toDate());
}
}, []);
<DateRangePicker
...
ref={offsetInitialMonth}
/>
For initial range, you can also just do:
<DateRangePicker
...
shownDate={moment().subtract(1, 'month').toDate()}
/>
Would also love to be able to always show backwards-facing dates rather than forward facing.
Is there a way to show the current and previous months, not the current and next months ?