Can fullcalendar be able to cache the events data of months view when we navigate from one month to other month view(Prev and Next buttons) as like lazyfetching caches data with in the single month when we navigate to week or day view as it only works for a single month. Say I am on Feb month and then change to the day view, the data is cached and does not send an ajax request. But If I change months to March and back to Feb, Feb still reloads.
Related
I have built a small calendar app. Events are stored in my database with Dates in UTC. My js code fetches these events and formats the UTC date to the local date of the user machine. Now I live in Sweden so if the UTC time is 10:00, the frontend should show 12:00. This works fine for me except when it comes to summer/winter time. In the frontend the user can set an event to repeat at specific dates. So for example I could set an event that starts at the 20 of every month to start at 12:00. However, lets say I add events from august to December. Events in August-October will show 12:00. Events from November to December will show 11:00. However, if I set a single event to start for example in December, it will show the correct date. What is the best way to deal with this?
This is how I format the utc date to my local date:
var d = moment.parseZone(startDate).local().format('L LT')
Racking my brain trying to get the TimelineYear view to start at a certain date. I have the Scheduler Plugin.
E.g.
https://fullcalendar.io/js/fullcalendar-scheduler-1.7.1/demos/scale.html
When you click on the Year button, it starts in Jan. Using Start Date, Visable Range, nothing works. Id like Todays date to be viewable automatically without having to scroll across to September as an example.
Any ideas?
I can do new moment().week() to get the week number for the current day.
When the current day is a Sunday/Monday which can be set as first day of week by my user, how can I do something like this to get the week index with momentJS:
new moment().firstDayOfWeek(1).week() // monday
OR
new moment().firstDayOfWeek('monday').week();
I do not want to load or change a locale setting via including .js files...
My user can sit in the United States where first day of week is seen as Sunday.
But my user is from Europe so he wants to have European calendar settings where a week starts on Monday.
I would like to send out a Notification based on today's date compared to a date field in my form but I am not sure how to accomplish this.
My current form has these fields: Name, Email, Upload File, and Payment Date. I would like to send the customer a notification when the Payment Date entered in the form, is two weeks away from today's date. So if I enter the date January 30th in the form, the Notification will be sent whenever January 16th rolls around. Whatever I do would have to check each entry daily to see if its within that 2 week window. Thoughts?
I have a need to use the FullCalendar plugin's month view, but with a small twist... I need the month view to be a calendar month (4 weeks) from the currently selected date, not a month proper (Jan, Feb, etc). In other words, I need the top left column to be the currently selected date, with the calendar rendering 4 weeks after that in month view.
Something similar to what is provided by thefirstDay property in agendaWeek view is close to what I am after. firstDay only sets the day of the week though, not a specific date within the month as the first day.
Try
firstDay: new Date().getDay()
in the parameters.
If you're going to show a Thursday in the upper left hand corner then what you've got isn't a calendar. It's a table data.
FullCalendar's firstDay is just for switching between starting on a Monday (European style) and starting on a Sunday (US style).