React-datepicker: Only Month/Year Picker

Created on 2 Feb 2018  路  42Comments  路  Source: Hacker0x01/react-datepicker

Is there any implementation of this as just a month/year picker? Our use case is to allow the user to select Jan 2018 - Jun 2018 without dates.

Most helpful comment

Hello guys, I looked at this thread and it seems that there is a massive need of a month/year picker variation. So, I have started to work on something like this:

Screen Shot 2019-03-15 at 1 22 21 PM

This is the 1st step towards month/year picker variation. I am planning to later extend it to Range month/year picker which is also needed. I have few ideas for the use cases but would like to hear from everyone else as well. It will help me to handle such use cases while I code for this.

Hoping for a positive response.

Cheers!!

All 42 comments

Also interested in this!
Thanks for a great tool

I need this aswell. I could work on this if it doesn't exist already.

+1 me too... wanted this feature

Any updates about this feature? I'm really interested too!

Hi! I'm really interested in this feature too. I need this in the project I'm working on and I'm having to search for another tool to cover this functionality.

Amazing idea, this would be really helpful! =)

I'm interested in this feature too

yeah, i agreed

me too

I need this feature

I'm interested in this feature too :)

Interested too :)

+1

+1

+1

+1

+1 @martijnrusschen @RSO

Is there any updates on this ? this would be a really useful feature, it would also be awesome to be able to select 'year' only view, keen to help on this if required,

+1

Hello guys, I looked at this thread and it seems that there is a massive need of a month/year picker variation. So, I have started to work on something like this:

Screen Shot 2019-03-15 at 1 22 21 PM

This is the 1st step towards month/year picker variation. I am planning to later extend it to Range month/year picker which is also needed. I have few ideas for the use cases but would like to hear from everyone else as well. It will help me to handle such use cases while I code for this.

Hoping for a positive response.

Cheers!!

Sounds like a great improvement! I could actually use this.

@gautam-relayr That's awesome news! I actually need the Range month/year so I'm looking forward to tracking your progress 馃槃

How about a purely year picker?

is there purely year picker in datePicker? or how to show year dropDown in monthYear Picker?

is there purely year picker in datePicker? or how to show year dropDown in monthYear Picker?

This could be useful to me as well. A dropdown is obviously one alternative, but I'm on a project now where they are looking for a year picker like this.

Also looking for this :)

<DatePicker
    dateFormat="MM.yyyy"
    showMonthYearPicker
/>

I would like to know if this feature was implemented already or not :), I need it

It seems it has been implemented.
Here a working example in the official documentation.

https://reactdatepicker.com/#example-month-picker

It seems it has been implemented.
Here a working example in the official documentation.

https://reactdatepicker.com/#example-month-picker

Purely year picker... not monthyear picker. All I would like is a drop down with a list of years to pick from. With that solution you can only increment/decrement the year, it's not feasible when you only want to pick the year.

+1 for year picker

+1 for year picker

+1 for year picker

thanks for the month picker. now I'm also waiting for year picker +1

+1 for year picker
and +1 for showYearDropdown in month picker as well

+1

how to do mon-year calendar, show year dropdown?
anyone have idea???

Hello guys, I hope everyone is doing well.

I see there is a massive demand of only pure year picker. I am building something like that, it looks like this:

c2569d3411c7f727cb31b5337396cbb5

This is the 1st step towards year picker variation. I am planning to later extend it to click on the year in the header on a normal date picker which opens up this which I see is also highly required by the community. That might look something like this:

date picker

I have few ideas for the use cases but would like to hear from everyone else as well. It will help me to handle such use cases while I code for this.

Hoping for a positive response.

Cheers!!

Added a yearpicker thanks to #2130

@martijnrusschen this issue can be closed too.

@gautam-pahuja @martijnrusschen I've been waiting for this feature, thx a lot for implementation!

But I still can't use it in TypeScript, as the latest version of @types/react-datepicker is 2.11.0

Could you please update @types/react-datepicker to 2.16.0?

Hello guys, I hope everyone is doing well.

I see there is a massive demand of only pure year picker. I am building something like that, it looks like this:

c2569d3411c7f727cb31b5337396cbb5

This is the 1st step towards year picker variation. I am planning to later extend it to click on the year in the header on a normal date picker which opens up this which I see is also highly required by the community. That might look something like this:

date picker

I have few ideas for the use cases but would like to hear from everyone else as well. It will help me to handle such use cases while I code for this.

Hoping for a positive response.

Cheers!!

This is exactly what I'm looking for. It will be very useful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jbccollins picture jbccollins  路  3Comments

ali-master picture ali-master  路  3Comments

lclemence picture lclemence  路  3Comments

kkras3 picture kkras3  路  3Comments

flaurida picture flaurida  路  3Comments