@fullcalendar/moment
TypeScript icon, indicating that this package has built-in type declarations

6.1.17 • Public • Published

FullCalendar Moment Plugin

Enhanced date formatting and conversion with Moment

Installation

First, ensure Moment is installed:

npm install moment

Then, install the FullCalendar core package, the Moment plugin, and any other plugins (like daygrid):

npm install @fullcalendar/core @fullcalendar/moment @fullcalendar/daygrid

Usage

Instantiate a Calendar with the necessary plugin:

import { Calendar } from '@fullcalendar/core'
import momentPlugin from '@fullcalendar/moment'
import dayGridPlugin from '@fullcalendar/daygrid'

const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
  plugins: [
    momentPlugin,
    dayGridPlugin
  ],
  initialView: 'dayGridMonth',
  titleFormat: 'MMMM D, YYYY' // use Moment format strings
})

calendar.render()

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.11.55,420legacy
6.1.173,725latest
7.0.0-beta.40beta
7.0.0-rc.01rc

Version History

VersionDownloads (Last 7 Days)Published
6.1.173,725
7.0.0-rc.01
7.0.0-beta.40
7.0.0-beta.31
7.0.0-beta.11
7.0.0-beta.00
6.1.1511,524
6.1.14570
6.1.13175
6.1.124
6.1.112,495
6.1.101,845
6.1.9849
6.1.81,066
6.1.7173
5.11.55,420
6.1.696
6.1.5583
6.1.427
6.1.30
6.1.126
6.1.01
5.11.4348
6.0.3528
6.0.215
6.0.11
6.0.06
6.0.0-beta.40
6.0.0-beta.30
6.0.0-beta.23
5.11.3342
6.0.0-beta.120
5.11.2215
5.11.0461
5.10.1570
5.10.084
5.9.0286
5.8.0216
5.7.227
5.7.076
5.6.0550
5.5.057
5.4.018
5.3.114
5.3.07
5.2.04
5.1.05
5.0.02
5.0.0-rc0
4.4.27,467
5.0.0-beta.40
5.0.0-beta.36
5.0.0-beta.22
5.0.0-beta.10
4.4.0390
4.3.0573
4.2.0215
4.1.062
4.0.13
4.0.0-beta.40
4.0.0-beta.31
4.0.0-beta.20

Package Sidebar

Install

npm i @fullcalendar/moment

Weekly Downloads

33,131

Version

6.1.17

License

MIT

Unpacked Size

16.6 kB

Total Files

8

Last publish

Collaborators

  • arshaw