JustANoob
JustANoob

Reputation: 177

How do I facilitate easy year-to-year navigation using react-datepicker?

I was thinking of having some double arrows that allow year scrolling similar to the month scrolling ones. Other ideas on how to reach the main goals are more than welcome.

GitHub link: https://github.com/Hacker0x01/react-datepicker

Upvotes: 5

Views: 11428

Answers (2)

Sachin Kumar
Sachin Kumar

Reputation: 463

You can look this example. You need to pass showMonthDropdown and showYearDropdown for the DatePicker to display select dropdowns for year and month.

Upvotes: 9

Rio A.P
Rio A.P

Reputation: 1395

do you want something like this.

react-datepicker

just add this code to your react calendar :

dateFormatCalendar="YYYY"

Upvotes: -1

Related Questions