Get Instances
kdelmonte opened this issue · comments
This library is great. Thank you.
Any way to get an array of dates that represent the instances of the event within a specified period of time? Something like this:
var instances = recur().setDayOfWeek(6).getInstances('1/1/15','1/30/15');
Currently there isn't a way to do that. Of course, you can loop through those dates yourself and check against the object. However, I suspect that by adding a function like that to this library is probably a good thing to do.
I'll try and take a look over the weekend sometime. :)
I'll send you a pull request for this one since it is simple enough.