react-date-range icon indicating copy to clipboard operation
react-date-range copied to clipboard

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

Open m41w4r3exe opened this issue 7 years ago • 5 comments

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

m41w4r3exe avatar Apr 06 '18 14:04 m41w4r3exe

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.

mkg0 avatar Apr 22 '18 09:04 mkg0

any news on this?

bogdansoare avatar Sep 07 '18 09:09 bogdansoare

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

m41w4r3exe avatar Sep 08 '18 06:09 m41w4r3exe

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?

rtnlsltn avatar Oct 23 '19 03:10 rtnlsltn

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

Hermoult avatar Jun 08 '22 08:06 Hermoult