2

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

JustANoob
  • 93
  • 2
  • 10

2 Answers2

3

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

Sachin Kumar
  • 808
  • 3
  • 11
  • 29
0

do you want something like this.

react-datepicker

just add this code to your react calendar :

dateFormatCalendar="YYYY"
Rio A.P
  • 1,313
  • 13
  • 20
  • Well sort of. I think you were hoping this will make the arrows change the year but that's not what happens the arrows still change the month. I want to be able to change both month and year using the calendar with easy for the user. – JustANoob Mar 02 '18 at 18:41
  • To make it clear, I would want something like http://projekty.wojtekmaj.pl/react-date-picker/ (notice the double arrows that allow changing years). An alternative solution which I like for easy date of birth selection can be found here https://eonasdan.github.io/bootstrap-datetimepicker/ (see ViewMode) – JustANoob Mar 02 '18 at 19:34