Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 774 Bytes

readme.md

File metadata and controls

21 lines (13 loc) · 774 Bytes

Moment RRule Build Status

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