later icon indicating copy to clipboard operation
later copied to clipboard

Every 6 months starting from a particular date

Open vivinjoy opened this issue 7 years ago • 1 comments

I am not able to express the following criteria. Every 6 months starting from '2013-03-21T11:30:00'. So the next two occurrences would be at '2013-09-21T11:30:00' and ''2014-03-21T11:30:00''.

Maybe I am missing some easy way to do this.

vivinjoy avatar Jun 04 '17 15:06 vivinjoy

Use the startingOn(val) function chained after every(val) function. So for your case you can do...

// every 6 months starting on the 3rd month
later.parse.recur().every(6).month().startingOn(3)

See here for more info. Hope this helps!

KurtStauffer avatar Jun 09 '17 18:06 KurtStauffer