moment-rrule
v0.1.1
Published
A moment plugin to work with RFC 5545 recurrence rules
Downloads
13
Readme
Moment RRule
A moment plugin to work with RFC 5545 recurrence rules
Note: This plugin is in development, if you want a more completed and tested package use rrule
or moment-recur
.
const moment = require('moment-rrule');
const start = moment('2018-01-01');
const rrule = start.rrule({ freq: 'monthly' });
const dates = rrule.between(start, moment('2018-12-01'));
// => [2018-01-01, 2018-02-01, ..., 2018-11-01, 2018-12-01]
For more examples see the test
folder
License
MIT © Philipp Beck