Skip to content

A moment plugin to work with RFC 5545 recurrence rules

License

Notifications You must be signed in to change notification settings

dertieran/moment-rrule

Repository files navigation

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

About

A moment plugin to work with RFC 5545 recurrence rules

Resources

License

Stars

Watchers

Forks

Packages

No packages published