# JavaScript calendar libraries

JavaScript calendar libraries render date pickers for form inputs and full calendars that display scheduled events. A date picker returns one chosen date or range to a form field. These libraries handle booking forms, scheduling screens, and team calendars in web apps.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [flatpickr](#flatpickr) | 9.4M | 16.4K | Apr 2022 | MIT |
| [flowbite-datepicker](#flowbite-datepicker) | 1.8M | 146 | Nov 2025 | MIT |
| [Pikaday](#pikaday) | 1.7M | 8.1K | Oct 2020 | 0BSD OR MIT |
| [@syncfusion/ej2-calendars](#syncfusion-ejtwo-calendars) | 1.6M | 450 | Nov 2026 | Syncfusion license |
| [air-datepicker](#air-datepicker) | 1.6M | 2.9K | May 2025 | MIT |
| [FullCalendar](#fullcalendar) | 1.4M | 20.8K | Nov 2026 | MIT |
| [Schedule-X](#schedule-x-calendar) | 1.1M | 2.6K | Sep 2026 | MIT |
| [bootstrap-datepicker](#bootstrap-datepicker) | 931.2K | 12.6K | Sep 2025 | Apache-2.0 |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[flatpickr](#flatpickr) has the most monthly downloads in this comparison, at 9.4M.

## Capabilities

| Library | Scheduled event records | Works without jQuery |
| --- | --- | --- |
| [flatpickr](#flatpickr) | No | Yes |
| [flowbite-datepicker](#flowbite-datepicker) | No | Yes |
| [Pikaday](#pikaday) | No | Yes |
| [@syncfusion/ej2-calendars](#syncfusion-ejtwo-calendars) | No | Yes |
| [air-datepicker](#air-datepicker) | No | Yes |
| [FullCalendar](#fullcalendar) | Yes | Yes |
| [Schedule-X](#schedule-x-calendar) | Yes | Yes |
| [bootstrap-datepicker](#bootstrap-datepicker) | No | No |

## Libraries

### flatpickr

[GitHub](https://github.com/flatpickr/flatpickr) · [npm](https://www.npmjs.com/package/flatpickr) · [Docs](https://flatpickr.js.org)

Provides configurable date, time, and date-range input controls.

- Downloads / mo: 9.4M
- Stars: 16.4K
- Last release: 4.6.13
- License: MIT
- Capabilities: [From the flatpickr docs](https://flatpickr.js.org)

**Strengths**

- **Combines date and time entry.** Enable the time picker alongside the calendar input.
- **Blocks unavailable dates.** Disable individual dates, ranges, or dates matched by a function.

**Watch out for**

- **Mobile controls change by default.** Mobile browsers use native date controls until unsupported features need flatpickr.

```sh
npm install flatpickr
```

**haoxins/react-flatpickr** (620 stars)

[haoxins/react-flatpickr](https://github.com/haoxins/react-flatpickr) 

```javascript
() => {
    if (flatpickrRef.current) {
      const optionsKeys = Object.getOwnPropertyNames(mergedOptions);
      for (let index = optionsKeys.length - 1; index >= 0; index--) {
        const key = optionsKeys[index];
        let optionValue = mergedOptions[key as keyof OptionsType];

        if (optionValue?.toString() !== flatpickrRef.current.config[key as keyof ParsedOptions]?.toString()) {
          if (hooks.includes(key as any) && !Array.isArray(optionValue)) {
            optionValue = [optionValue] as unknown as Plugin;
          }

          flatpickrRef.current.set(key as any, optionValue);
        }
      }

      if (value !== undefined && value !== flatpickrRef.current.input.value) {
        flatpickrRef.current.setDate(value as DateOption | DateOption[], false);
      }
    }
  }
```

[lib/DateTimePicker.tsx](https://github.com/haoxins/react-flatpickr/blob/577a92356f8fa61ca6f2225b2f994aedb9595cf2/lib/DateTimePicker.tsx#L97-L117) · [More projects using flatpickr →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20flatpickr%20for%20calendar%20lifecycle%2C%20synchronized%20date%20inputs%20and%20paired%20date%20range%20selection&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript
import flatpickr from 'flatpickr';
import 'flatpickr/dist/flatpickr.min.css';

flatpickr('#date');

```

From [getting-started](https://flatpickr.js.org/getting-started/)

### flowbite-datepicker

[GitHub](https://github.com/themesberg/flowbite-datepicker) · [npm](https://www.npmjs.com/package/flowbite-datepicker) · [Docs](https://flowbite.com/docs/plugins/datepicker/)

Provides Tailwind-styled date inputs, inline calendars, and date-range controls.

- Downloads / mo: 1.8M
- Stars: 146
- Last release: 2.0.0
- License: MIT
- Capabilities: [From the flowbite-datepicker docs](https://flowbite.com/docs/plugins/datepicker/)

**Strengths**

- **Fits existing Tailwind interfaces.** Use a date picker built with Tailwind utility classes.
- **Coordinates paired date inputs.** DateRangePicker controls a start-date input and an end-date input.

**Watch out for**

- **Inline calendars lack keyboard operation.** Use an input-attached picker when keyboard interaction matters.
- **Typing errors can change dates.** The tolerant parser can turn a mistyped input into an unexpected date.

```sh
npm install flowbite-datepicker
```

**themesberg/flowbite** (9.4K stars)

[themesberg/flowbite](https://github.com/themesberg/flowbite) 

```javascript
init() {
        if (this._datepickerEl && !this._initialized) {
            if (this._options.rangePicker) {
                this._datepickerInstance = new FlowbiteDateRangePicker(
                    this._datepickerEl,
                    this._getDatepickerOptions(this._options)
                );
            } else {
                this._datepickerInstance = new FlowbiteDatepicker(
                    this._datepickerEl,
                    this._getDatepickerOptions(this._options)
                );
            }

            this._initialized = true;
        }
    }
```

[src/components/datepicker/index.ts](https://github.com/themesberg/flowbite/blob/232ebdb33a9e37b31b293b9988d89b862ee121e5/src/components/datepicker/index.ts#L62-L78) · [More projects using flowbite-datepicker →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20flowbite-datepicker%20for%20calendar%20lifecycle%2C%20synchronized%20date%20inputs%20and%20paired%20date%20range%20selection&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript
import Datepicker from 'flowbite-datepicker/Datepicker';

new Datepicker(document.getElementById('date'), { autohide: true });

```

From [live-demo.js](https://cdn.jsdelivr.net/npm/flowbite-datepicker@2.0.0/README.md)

### Pikaday

[GitHub](https://github.com/Pikaday/Pikaday) · [npm](https://www.npmjs.com/package/pikaday) · [Docs](https://pikaday.com)

Provides a date picker input with no dependencies.

- Downloads / mo: 1.7M
- Stars: 8.1K
- Last release: 1.8.2
- License: 0BSD OR MIT
- Capabilities: [From the Pikaday docs](https://pikaday.com)

**Watch out for**

- **Archived and unmaintained.** The maintainers archived the repository and call it probably not the right choice today.

```sh
npm install pikaday
```

**Quickstart**

```javascript
import Pikaday from 'pikaday';
import 'pikaday/css/pikaday.css';

new Pikaday({ field: document.getElementById('date') });

```

From [README.md](https://cdn.jsdelivr.net/npm/pikaday@1.8.2/README.md) · [Find projects using Pikaday →](https://dashboard.exa.ai/playground/search?q=pikaday%20GitHub%20projects)

### @syncfusion/ej2-calendars

[GitHub](https://github.com/syncfusion/ej2-javascript-ui-controls) · [npm](https://www.npmjs.com/package/@syncfusion/ej2-calendars) · [Docs](https://www.syncfusion.com/javascript-ui-controls)

Provides calendar, date picker, date range picker, date time picker, and time picker components.

- Downloads / mo: 1.6M
- Stars: 450
- Last release: 35.2.12
- License: Syncfusion license
- Capabilities: [From the @syncfusion/ej2-calendars docs](https://www.syncfusion.com/javascript-ui-controls)

```sh
npm install @syncfusion/ej2-calendars
```

**Quickstart**

```javascript
import { DatePicker } from '@syncfusion/ej2-calendars';
import '@syncfusion/ej2-base/styles/material.css';
import '@syncfusion/ej2-buttons/styles/material.css';
import '@syncfusion/ej2-inputs/styles/material.css';
import '@syncfusion/ej2-popups/styles/material.css';
import '@syncfusion/ej2-calendars/styles/material.css';

const datepicker = new DatePicker();
datepicker.appendTo('#element');

```

From [getting-started](https://help.syncfusion.com/scheduler-sdk/typescript/datepicker/getting-started) · [Find projects using @syncfusion/ej2-calendars →](https://dashboard.exa.ai/playground/search?q=%40syncfusion/ej2-calendars%20GitHub%20projects)

### air-datepicker

[GitHub](https://github.com/t1m0n/air-datepicker) · [npm](https://www.npmjs.com/package/air-datepicker) · [Docs](https://air-datepicker.com)

Provides a customizable date picker without a jQuery dependency.

- Downloads / mo: 1.6M
- Stars: 2.9K
- Last release: 3.6.0
- License: MIT
- Capabilities: [From the air-datepicker docs](https://air-datepicker.com)

**Strengths**

- **Adds custom date actions.** Custom buttons can select a date and change the displayed month.
- **Adjusts ranges by dragging.** Change selected range endpoints by dragging dates.

**Watch out for**

- **Inline calendars lose keyboard navigation.** Keyboard navigation requires initialization on a text field.
- **English needs a locale import.** The default locale is Russian until an imported English locale is passed.

```sh
npm install air-datepicker
```

**frappe/frappe** (11.1K stars)

[frappe/frappe](https://github.com/frappe/frappe) 

```javascript
set_formatted_input(value) {
		if (value === "Today") {
			value = this.get_now_date();
		}

		super.set_formatted_input(value);
		if (this.timepicker_only) return;
		if (!this.datepicker) return;
		if (!value) {
			this.clear_datepicker();
			this.datepicker.setViewDate(this.get_now_date());
			return;
		}

		let should_refresh = this.last_value && this.last_value !== value;

		if (!should_refresh) {
			if (this.datepicker.selectedDates.length > 0) {
				// if date is selected but different from value, refresh
				const selected_date = moment(this.datepicker.selectedDates[0]).format(
					this.date_format
				);

				should_refresh = selected_date !== value;
			} else {
				// if datepicker has no selected date, refresh
				should_refresh = true;
			}
		}

		if (should_refresh) {
			const date = frappe.datetime.str_to_obj(value);
			this.select_date_silently(date);
			this.datepicker.setViewDate(date);
		}
	}
```

[frappe/public/js/frappe/form/controls/date.js](https://github.com/frappe/frappe/blob/07e221db98bb7be1161df8034f684e70bddc1415/frappe/public/js/frappe/form/controls/date.js#L12-L47) · [More projects using air-datepicker →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20air-datepicker%20for%20calendar%20lifecycle%2C%20synchronized%20date%20inputs%20and%20paired%20date%20range%20selection&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript
import AirDatepicker from 'air-datepicker';
import 'air-datepicker/air-datepicker.css';

new AirDatepicker('#date');

```

From [docs](https://air-datepicker.com/docs)

### FullCalendar

[GitHub](https://github.com/fullcalendar/fullcalendar) · [npm](https://www.npmjs.com/package/fullcalendar) · [Docs](https://fullcalendar.io)

Renders an interactive event calendar with drag-and-drop editing.

- Downloads / mo: 1.4M
- Stars: 20.8K
- Last release: 7.1.5
- License: MIT
- Capabilities: [From the FullCalendar docs](https://fullcalendar.io)

**Strengths**

- **Displays editable event calendars.** Render events in a calendar with drag-and-drop editing.
- **Selects days and time slots.** Enable selectable and load the shipped interaction plugin.

**Watch out for**

- **Resource timelines require Premium.** Resource and timeline views use separately licensed Premium plugins.
- **Selection ends are exclusive.** A selection ending Friday includes dates through Thursday.

```sh
npm install fullcalendar temporal-polyfill
```

**Quickstart**

```javascript
import { Calendar } from 'fullcalendar';
import classicThemePlugin from 'fullcalendar/themes/classic';
import dayGridPlugin from 'fullcalendar/daygrid';
import 'fullcalendar/skeleton.css';
import 'fullcalendar/themes/classic/theme.css';
import 'fullcalendar/themes/classic/palette.css';

const calendar = new Calendar(document.getElementById('calendar'), {
  plugins: [classicThemePlugin, dayGridPlugin],
  initialView: 'dayGridMonth'
});
calendar.render();

```

From [README.md](https://raw.githubusercontent.com/fullcalendar/fullcalendar/main/README.md) · [Find projects using FullCalendar →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20fullcalendar%20for%20calendar%20lifecycle%2C%20synchronized%20date%20inputs%20and%20paired%20date%20range%20selection&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

### Schedule-X

[GitHub](https://github.com/schedule-x/schedule-x) · [npm](https://www.npmjs.com/package/@schedule-x/calendar) · [Docs](https://schedule-x.dev)

Renders an event calendar from a configuration object and a list of plugins.

- Downloads / mo: 1.1M
- Stars: 2.6K
- Last release: 4.9.1
- License: MIT
- Capabilities: [From the Schedule-X docs](https://schedule-x.dev)

**Watch out for**

- **Needs a Temporal polyfill.** Install temporal-polyfill alongside the calendar and its default theme.

```sh
npm install @schedule-x/calendar @schedule-x/theme-default preact@^10.19.2 @preact/signals@^2.0.2 temporal-polyfill@0.3.2
```

**Quickstart**

```javascript
import 'temporal-polyfill/global';
import { createCalendar, createViewMonthGrid } from '@schedule-x/calendar';
import '@schedule-x/theme-default/dist/index.css';

const calendar = createCalendar({ views: [createViewMonthGrid()], events: [] });
calendar.render(document.getElementById('calendar'));

```

From [core.d.ts](https://cdn.jsdelivr.net/npm/@schedule-x/calendar@4.9.1/dist/core.d.ts) · [Find projects using Schedule-X →](https://dashboard.exa.ai/playground/search?q=%40schedule-x/calendar%20GitHub%20projects)

### bootstrap-datepicker

[GitHub](https://github.com/uxsolutions/bootstrap-datepicker) · [npm](https://www.npmjs.com/package/bootstrap-datepicker)

Provides a date picker widget in the Bootstrap style.

- Downloads / mo: 931.2K
- Stars: 12.6K
- Last release: 1.10.1
- License: Apache-2.0
- Capabilities: [From the bootstrap-datepicker docs](https://github.com/uxsolutions/bootstrap-datepicker)

**Watch out for**

- **Requires jQuery.** Load jQuery and Bootstrap before calling datepicker on an element.

```sh
npm install bootstrap-datepicker jquery@^3.4.0
```

**Quickstart**

```javascript
import $ from 'jquery';
import 'bootstrap-datepicker';
import 'bootstrap-datepicker/dist/css/bootstrap-datepicker3.standalone.min.css';

$('#date').datepicker({ format: 'yyyy-mm-dd' });

```

From [bootstrap-datepicker docs](https://bootstrap-datepicker.readthedocs.io/en/latest/) · [Find projects using bootstrap-datepicker →](https://dashboard.exa.ai/playground/search?q=bootstrap-datepicker%20GitHub%20projects)

## FAQ

### Which JavaScript calendar library should I use?

[FullCalendar](#fullcalendar) and [Schedule-X](#schedule-x-calendar) display scheduled events across days, weeks, or months. [flatpickr](#flatpickr), [Air Datepicker](#air-datepicker), and [Flowbite Datepicker](#flowbite-datepicker) attach a date picker to a form input, and flatpickr is the most downloaded of them, at 9.4M a month.

### Which JavaScript date picker works without jQuery?

flatpickr, Air Datepicker, Flowbite Datepicker, and Pikaday run without jQuery. [Bootstrap Datepicker](#bootstrap-datepicker) requires jQuery and Bootstrap.

### What is a good FullCalendar alternative?

[Schedule-X](#schedule-x-calendar) also renders an event calendar, created with `createCalendar` from a configuration object and a list of plugins. FullCalendar keeps resource and timeline views in separately licensed Premium plugins.

### Can FullCalendar select a range of days or time slots?

Load the interaction plugin and enable selectable for drag selection.

### Does a FullCalendar selection include its ending day?

The selection end is exclusive: an all-day selection through Thursday has Friday as its end.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best JavaScript calendar libraries FullCalendar flatpickr Air Datepicker Flowbite Datepicker examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
