hypeserver / react-date-range

A React component for choosing dates and date ranges.
MIT License
2.6k stars 678 forks source link

How to define period range as ’week’, ‘month’, ‘year’? #185

Open m41w4r3exe opened 6 years ago

m41w4r3exe commented 6 years ago

Hi, thanks for the great lib! I’d like to ask if it is possible to be able to select a predefined period range as ’week’, ‘month’, ‘year’? Some example pics might help what I’m trying to say. I couldn’t find a way to implement such thing with your calendar, would love to hear from you if it is possible?

So for instance, when month range is selected, clicking on the month sets the range from first day of that month to the last day, instead of opening that month basically. screen shot 2018-04-06 at 17 16 38 screen shot 2018-04-06 at 17 16 48 screen shot 2018-04-06 at 17 16 57

mkg0 commented 6 years ago

Hi @hplusb, We hadn't covered year/month picker at the new version. But with #192 you will able to cover week/month or any other custom selection behaviours. I can discuss with our designer but I can't imagine how can we cover it with the current design and actually how many users really need it.

bogdansoare commented 6 years ago

any news on this?

m41w4r3exe commented 6 years ago

I went for implementing a new calendar for my custom use on my own, so no news from my side unfortunately.

rtnlsltn commented 5 years ago

I'd really like a month/year picker... Reviving this to ask if there's a simple way to do this with the current version?

Hermoult commented 2 years ago

Hello, Is there currently a solution to display only a month/year picker ? thanks