I am using react-day-picker to power up my website.
I use multi-select mode depicting two months side by side,and i want to show only months in the caption omitting the year. Is there any option in the day-picker that would enable me to do this?
I am using react-day-picker to power up my website.
I use multi-select mode depicting two months side by side,and i want to show only months in the caption omitting the year. Is there any option in the day-picker that would enable me to do this?
Yes you have to pass
canChangeYear
and canChangeMonth
props as false
to DayPicker
component.
<DayPicker canChangeYear={false} canChangeMonth={false} numberOfMonths={2}/>