moment-recur icon indicating copy to clipboard operation
moment-recur copied to clipboard

Filter

Open jchapelle opened this issue 4 years ago • 1 comments

Hey, is it possible to generate all dates included in a range matching a specific rule. Let's say I have recurrence starting on 08/06/2020 every 2 weeks and I want to generate all the date that match that rule between 01/07/2020 and 31/07/2020. Is that feasible ?

Reading the doc, I can't find a way to do it beside generating all the dates of the recurrence and filter the results.

jchapelle avatar Jun 23 '20 19:06 jchapelle

Found it -> .fromDate() !!! Keep up the good work ;-)

jchapelle avatar Jun 23 '20 20:06 jchapelle