0

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?

caption

Nic3500
  • 8,144
  • 10
  • 29
  • 40

1 Answers1

0

enter image description hereYes you have to pass canChangeYear and canChangeMonth props as false to DayPicker component.

<DayPicker  canChangeYear={false} canChangeMonth={false} numberOfMonths={2}/>
Amruth
  • 5,792
  • 2
  • 28
  • 41