I'm totally new to moment.js
. I just need little help for generating recurring dates. I read the documentation and not understand the use of every()
function. In documentation they explained the use of every()
with only start date. But how it will work for the monthly and bi-monthly recurrence on same weekdays?
I have the following code in which I provide it a start and end date, to find monthly & bi-monthly recurring dates.
var recurrence;
recurrence = moment().recur({
start: baseDt,
end: lastDt
});