FullCalendar Luxon 1 Plugin
Enhanced date formatting, conversion, and named time zone functionality with Luxon 1
Installation
First, ensure Luxon is installed:
npm install luxon@1
Then, install the FullCalendar core package, the Luxon plugin, and any other plugins (like daygrid):
npm install @fullcalendar/core @fullcalendar/luxon @fullcalendar/daygrid
Usage
Instantiate a Calendar with the necessary plugin:
import { Calendar } from '@fullcalendar/core'
import luxonPlugin from '@fullcalendar/luxon'
import dayGridPlugin from '@fullcalendar/daygrid'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [
luxonPlugin,
dayGridPlugin
],
initialView: 'dayGridMonth',
titleFormat: 'LLLL d, yyyy',
timeZone: 'America/New_York'
})
calendar.render()