You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 15, 2020. It is now read-only.
Hi all.
from parsed .ics data i want to extract events that happen on a specific day (when cycling through rendering of a monthly calendar for example).
This is what i tried:
var startDate = new Date(date); // specific day at 0:00
var endDate = new Date(startDate.getFullYear(), startDate.getMonth(), startDate.getDate(), 23, 59, 59);
var eventsInDay = [];
for (var i = 0; i < allEvents.length; i++) {
if (allEvents[i].inTimeRange(startDate, endDate)) {
eventsInDay.push(allEvents[i]);
}
}
Miserably inTimeRange() returns true for all events on every day, although my recurring events only happen one time a month.
What is wrong with my implementation?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi all.
from parsed .ics data i want to extract events that happen on a specific day (when cycling through rendering of a monthly calendar for example).
This is what i tried:
Miserably inTimeRange() returns true for all events on every day, although my recurring events only happen one time a month.
What is wrong with my implementation?
The text was updated successfully, but these errors were encountered: