Questions tagged [moment-recur]

moment-recur is a recurring date plugin for momentjs. This plugin handles dates only; time information is discarded. The rule matching concept is borrowed from the excellent node-date-recur library created by Andrew Chilton.

moment-recur is a plugin for generating and matching recurring dates. Time information is discarded.

Usage of the plugin can be found in the readme page of the repository on GitHub.

10 questions
3
votes
0 answers

Using multiple rules in moment-recur.all not working

I'm using the moment-recur package and I'm trying to create an array of all dates that occur according to some rules. For that I'm using recurrence.all("L"). Calling this method with the next object returns an empty array: { start:…
Matan Shushan
  • 1,204
  • 1
  • 10
  • 25
3
votes
1 answer

Trouble with a package (moment-recur) when moving from Bower to NPM

Background: I'm trying to move this package Moment-recur from Bower to NPM in our Angular 1.5 app and having some trouble. The package depends on Moment and extends its function as moment.recur = function(start, end) { // If we have an object,…
Devin
  • 1,755
  • 1
  • 19
  • 27
2
votes
1 answer

Monthly & bi-monthly recurrence on same weekdays using moment-recur

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…
Superman
  • 871
  • 2
  • 13
  • 31
1
vote
0 answers

Not quite sure why I am getting the wrong time from moment.js and moment recur

let offinsRecurs = [ moment("03-07-2018 8:00:00", "DD-MM-YYYY HH:mm:ss").recur().every(7).days(), //tuesday moment("05-07-2018 15:00:00", "DD-MM-YYYY HH:mm:ss").recur().every(7).days(), //thursd moment("06-07-2018 22:00:00", "DD-MM-YYYY…
1
vote
1 answer

Generating Quarterly dates using moment().recur()

I'm building a calendar application where users can save events that recur. After a lot of research I've chosen to use the moment-recur plugin to the moment.js library to save the dates of recurring events in the database. My issue is: users in my…
Sean
  • 2,609
  • 1
  • 18
  • 34
0
votes
0 answers

I want to show recurring events Angular calendar (mwlcalendar)

I am trying to implement recurring events in mwlcalendar in Angular. I have the events and the occurences for recurring events. how to show it in the calendar I have used moment-recur plugin to generate occurences but I want to show the occurences…
0
votes
1 answer

Calculate how many days until an event, based on a recurring date and recurrence

I'm trying to build a function that calculates how many days left until an event. "date" is when the event begins and "repeat" handles the repetition of the event, the function that I trying to build iterates the data and give me back an array with…
0
votes
0 answers

Does moment-recur have a built in offset for date count?

In the moment-recur documentation the following statement is made and code is given. With both a start date and an end date set, you can generate all dates within that range that match the pattern (including the start/end dates). var recurrence =…
William
  • 4,422
  • 17
  • 55
  • 108
0
votes
1 answer

Recurring event in FullCalendar

So I have spent the past 2 weeks trying to figure this out and tried all other previously proposed answers. I'm still not able to get it right. I'm trying to setup a calendar where the recurring events are filtered within the specified date…
0
votes
1 answer

Nth day of the Month

I'm using momentjs plugin moment-recur to create and manipulate recurring dates in a client application. I am able to create all types of recurring dates (daily, monthly, annually) but cannot figure out how to create a recurring date for the Nth…
Preston S
  • 2,751
  • 24
  • 37