/syncfusion-javascript:syncfusion-javascript-calendarsfrom Syncfusion JavaScript UI Controls
Implement Calendar, DatePicker, DateRangePicker, DateTimePicker, and TimePicker components using Syncfusion JavaScript (EJ2) calendars library. Covers date/time selection, formatting, validation, localization, masking, accessibility, and advanced customization patterns.
Ships in Syncfusion JavaScript UI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Syncfusion EJ2 Calendar is a highly customizable calendar UI control that allows users to select single or multiple dates. It supports multiple views (Month, Year, Decade), navigation, week numbers, disabled dates, custom day cell rendering, localization, RTL support, and full accessibility (WCAG 2.2 compliant).
npm install @syncfusion/ej2-calendars @syncfusion/ej2-base
npm audit
<div id="calendar"></div>
import { Calendar } from '@syncfusion/ej2-calendars';
const calendar = new Calendar({
value: new Date(),
change: (args: any) => {
console.log('Selected date:', args.value);
}
});
calendar.appendTo('#calendar');
Notes:
change event to respond to selected date changes.calendar.value property and listen to change event.isMultiSelection: true with values property and addDate()/removeDate() methods.navigateTo(view, date) method — both arguments are required.role="region" for additional context if needed.weekNumber: true property.Navigate to the reference that matches your current task:
📄 Read: references/calendar-getting-started.md
📄 Read: references/calendar-date-selection.md
📄 Read: references/calendar-calendar-views.md
📄 Read: references/calendar-styling-and-customization.md
📄 Read: references/calendar-events-and-methods.md
📄 Read: references/calendar-accessibility-and-globalization.md
📄 Read: references/calendar-api-reference.md
node_modules/@syncfusion/ej2-calendars/styles/ and are loaded before component initialization.change event to update component state — EJ2 components notify changes through events, not automatic binding.isMultiSelection: true and use values array property for initial values.navigateTo not working: The method requires two arguments — navigateTo(view: CalendarView, date: Date).npm install @syncfusion/ej2-calendars @syncfusion/ej2-base and confirm package.json.weekNumber: true (not showWeekNumber).The Syncfusion EJ2 DatePicker provides an intuitive input control with a calendar popup for selecting a single date. It features flexible formatting, masked input, min/max date validation, strict mode, multiple input formats, custom day rendering, localization, and seamless form integration.
The DatePicker is a Syncfusion EJ2 component for date selection with powerful features:
enableMask for segment-by-segment date entry with maskPlaceholderstrictMode automatic correctionstart and depth propertiesrenderDayCell eventenableRtl), locale-specific formatting, firstDayOfWeekshow(), hide(), focusIn(), focusOut(), navigateTo(), currentView()| Property | Type | Default | Description |
|---|---|---|---|
value | Date | null | Selected date |
min | Date | 1900-01-01 | Minimum selectable date |
max | Date | 2099-12-31 | Maximum selectable date |
format | string | null | Display format (e.g., "dd/MM/yyyy") |
inputFormats | string[] | null | Accepted input formats array |
placeholder | string | null | Placeholder text for the input |
enabled | boolean | true | Enable or disable the component |
readonly | boolean | false | Readonly state |
allowEdit | boolean | true | Allow editing the input textbox |
strictMode | boolean | false | Auto-correct out-of-range dates |
showClearButton | boolean | true | Show/hide the clear button |
showTodayButton | boolean | true | Show/hide today button |
start | CalendarView | Month | Initial view: "Month", "Year", "Decade" |
depth | CalendarView | Month | Deepest navigation level |
enableMask | boolean | false | Enable masked date input |
maskPlaceholder | object | {...} | Segment placeholders for masked input |
enableRtl | boolean | false | Right-to-left rendering |
locale | string | '' | Culture/locale code |
firstDayOfWeek | number | 0 | First day of week (0=Sunday) |
weekNumber | boolean | false | Show week numbers |
weekRule | WeekRule | FirstDay | Rule for first week of year |
calendarMode | CalendarType | Gregorian | Calendar type (Gregorian or Islamic) |
dayHeaderFormat | DayHeaderFormats | Short | Day name format in header |
floatLabelType | FloatLabelType | Never | Floating label behavior |
fullScreenMode | boolean | false | Full screen popup on mobile |
openOnFocus | boolean | false | Open popup on input focus |
serverTimezoneOffset | number | null | Server timezone offset |
cssClass | string | null | Custom CSS class |
htmlAttributes | object | {} | Additional HTML attributes |
keyConfigs | object | null | Custom key action mappings |
width | string | number | null | Component width |
zIndex | number | 1000 | Popup z-index |
enablePersistence | boolean | false | Persist state between reloads |
| Method | Returns | Description |
|---|---|---|
show() | void | Opens the calendar popup |
hide() | void | Closes the calendar popup |
focusIn() | void | Sets focus to the component |
focusOut() | void | Removes focus from the component |
navigateTo(view, date) | void | Navigates to a specific view and date |
currentView() | string | Returns the current calendar view name |
getPersistData() | string | Gets persisted state data |
destroy() | void | Destroys the component |
| Event | Args Type | Description |
|---|---|---|
change | ChangedEventArgs | Fires when the selected date changes |
focus | FocusEventArgs | Fires when input gains focus |
blur | BlurEventArgs | Fires when input loses focus |
open | PopupEventArgs | Fires when the popup opens |
close | PopupEventArgs | Fires when the popup closes |
cleared | ClearedEventArgs | Fires when value is cleared |
created | Object | Fires when component is created |
destroyed | Object | Fires when component is destroyed |
navigated | NavigatedEventArgs | Fires when calendar view is navigated |
renderDayCell | RenderDayCellEventArgs | Fires when each day cell is rendered |
When you need help with DatePicker, guide to the appropriate reference:
📄 Read: references/datepicker-getting-started.md
📄 Read: references/datepicker-date-formats-and-input.md
📄 Read: references/datepicker-date-range-and-validation.md
📄 Read: references/datepicker-date-views-and-navigation.md
📄 Read: references/datepicker-customization-and-styling.md
📄 Read: references/datepicker-globalization-and-localization.md
📄 Read: references/datepicker-accessibility-and-keyboard.md
📄 Read: references/datepicker-date-masking-and-strict-mode.md
enableMask property for structured segment-by-segment date inputmaskPlaceholder for custom segment placeholder textstrictMode property behavior and enforcementHere's a minimal working example to get started:
<input id="datepicker" type="text" />
import { DatePicker } from '@syncfusion/ej2-calendars';
const datepicker = new DatePicker({
value: new Date(),
change: (e: any) => {
console.log('Selected date:', e.value);
},
placeholder: 'Enter date'
});
datepicker.appendTo('#datepicker');
Key points:
DatePicker from @syncfusion/ej2-calendarsnew DatePicker({...})appendTo() to render in a target DOM elementchange event to react to date selectionThe Syncfusion EJ2 DateRangePicker enables users to select a start and end date range with built-in support for presets, validation, custom formatting, separator configuration, full-screen mobile mode, and advanced range constraints (minDays, maxDays, min, max).
📄 Read: references/daterangepicker-getting-started.md
📄 Read: references/daterangepicker-date-range-selection.md
📄 Read: references/daterangepicker-date-range-formatting.md
📄 Read: references/daterangepicker-events-and-methods.md
📄 Read: references/daterangepicker-customization-and-styling.md
📄 Read: references/daterangepicker-api-reference.md
📄 Read: references/daterangepicker-advanced-patterns.md
<input id="daterangepicker" type="text" />
import { DateRangePicker } from '@syncfusion/ej2-calendars';
const drp = new DateRangePicker({
placeholder: 'Select a range',
change: (e: any) => {
console.log('Start:', e.startDate, 'End:', e.endDate);
}
});
drp.appendTo('#daterangepicker');
const drp = new DateRangePicker({
placeholder: 'Select a range in 2026',
min: new Date(2026, 0, 1),
max: new Date(2026, 11, 31),
change: (e: any) => {
console.log('Range:', e.startDate, '-', e.endDate);
}
});
drp.appendTo('#drp');
const drp = new DateRangePicker({
placeholder: 'Select reporting period',
presets: [
{ label: 'Today', start: new Date(), end: new Date() },
{ label: 'Last 7 Days', start: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000), end: new Date() },
{ label: 'Last 30 Days', start: new Date(Date.now() - 30 * 24 * 60 * 60 * 1000), end: new Date() }
]
});
drp.appendTo('#drp');
The Syncfusion EJ2 DateTimePicker combines date and time selection in a single control. It offers calendar + time list popup, customizable time steps, masking, strict validation, timezone handling, format customization, and full keyboard accessibility.
npm install @syncfusion/ej2-calendars
npm audit
index.css or component CSS):@import '../node_modules/@syncfusion/ej2-base/styles/material3.css';
@import '../node_modules/@syncfusion/ej2-calendars/styles/material3.css';
<input id="datetimepicker" type="text" />
import { DateTimePicker } from '@syncfusion/ej2-calendars';
const picker = new DateTimePicker({
value: new Date(),
format: 'dd/MM/yyyy hh:mm a',
step: 15,
placeholder: 'Select date and time',
change: (args: any) => {
console.log('Selected:', args.value);
}
});
picker.appendTo('#datetimepicker');
value property and listen to change event.min, max for dates, minTime/maxTime for times.enableMask and provide maskPlaceholder.locale property for culture-specific formatting.keyConfigs for custom shortcuts.value, min, max, step, format, enableMask, placeholder, cssClass, locale, readonly, enabled.change, open, close, created, destroyed, navigated, blur, focus, renderDayCell.The Syncfusion EJ2 TimePicker is a lightweight and feature-rich control for selecting time values. It supports 12/24-hour formats, time stepping, min/max constraints, masked input, localization, full-screen mode, and easy integration into HTML forms.
📄 Read: references/timepicker-getting-started.md
📄 Read: references/timepicker-time-format-and-display.md
📄 Read: references/timepicker-time-range-and-selection.md
📄 Read: references/timepicker-events-and-methods.md
📄 Read: references/timepicker-customization-and-styling.md
📄 Read: references/timepicker-api-reference.md
📄 Read: references/timepicker-advanced-patterns.md
<input id="timepicker" type="text" />
import { TimePicker } from '@syncfusion/ej2-calendars';
const timepicker = new TimePicker({
value: new Date('1/1/2018 9:00 AM'),
change: (e: any) => {
console.log('Selected time:', e.value);
},
placeholder: 'Select a time'
});
timepicker.appendTo('#timepicker');
const timepicker = new TimePicker({
value: new Date('1/1/2018 9:00 AM'),
min: new Date('1/1/2018 8:00 AM'),
max: new Date('1/1/2018 5:00 PM'),
step: 30,
change: (e: any) => {
console.log('Appointment time:', e.value);
},
placeholder: 'Choose time (8 AM - 5 PM)'
});
timepicker.appendTo('#timepicker');
const timepicker12 = new TimePicker({
format: 'hh:mm a', // 12-hour with AM/PM
placeholder: 'Select time'
});
const timepicker24 = new TimePicker({
format: 'HH:mm', // 24-hour
placeholder: 'Select time'
});
timepicker12.appendTo('#timepicker12');
timepicker24.appendTo('#timepicker24');
const timepicker = new TimePicker({
value: new Date(),
change: (e: any) => {
console.log('Changed to:', e.value?.toLocaleTimeString());
},
open: (e: any) => {
console.log('Popup opened');
},
close: (e: any) => {
console.log('Popup closed');
}
});
timepicker.appendTo('#timepicker');
| Prop | Type | Default | Purpose |
|---|---|---|---|
value | Date | null | Current selected time value |
format | string | Based on culture | Time display format (e.g., "HH:mm", "hh:mm a") |
min | Date | 00:00 | Minimum selectable time |
max | Date | 00:00 | Maximum selectable time |
step | number | 30 | Time interval in minutes between list items |
enabled | boolean | true | Enable/disable the component |
readonly | boolean | false | Read-only state (no editing) |
placeholder | string | - | Input placeholder text |
openOnFocus | boolean | false | Open popup on input focus |
enableMask | boolean | false | Enable masked input mode |
enableRtl | boolean | false | Enable right-to-left layout |
strictMode | boolean | false | Validate input and restrict to valid times |
showClearButton | boolean | true | Show/hide clear button |
fullScreenMode | boolean | false | Mobile full-screen mode |
cssClass | string | - | Custom CSS class for styling |
floatLabelType | string | Never | Float label position |
allowEdit | boolean | true | Allow manual input editing |
locale | string | 'en-US' | Locale for time formatting |
scrollTo | Date | - | Default scroll position in popup |
width | string/number | - | Component width |
zIndex | number | 1000 | Z-index of popup |
serverTimezoneOffset | number | - | Server timezone offset for processing |
htmlAttributes | object | {} | Custom HTML attributes |
Next Steps:
references/calendar-accessibility-and-globalization.md (opens in a new tab)references/calendar-api-reference.md (opens in a new tab)references/calendar-calendar-views.md (opens in a new tab)references/calendar-date-selection.md (opens in a new tab)references/calendar-events-and-methods.md (opens in a new tab)references/calendar-getting-started.md (opens in a new tab)references/calendar-styling-and-customization.md (opens in a new tab)references/datepicker-accessibility-and-keyboard.md (opens in a new tab)references/datepicker-customization-and-styling.md (opens in a new tab)references/datepicker-date-formats-and-input.md (opens in a new tab)references/datepicker-date-masking-and-strict-mode.md (opens in a new tab)references/datepicker-date-range-and-validation.md (opens in a new tab)references/datepicker-date-views-and-navigation.md (opens in a new tab)references/datepicker-getting-started.md (opens in a new tab)references/datepicker-globalization-and-localization.md (opens in a new tab)references/daterangepicker-advanced-patterns.md (opens in a new tab)references/daterangepicker-api-reference.md (opens in a new tab)references/daterangepicker-customization-and-styling.md (opens in a new tab)references/daterangepicker-date-range-formatting.md (opens in a new tab)references/daterangepicker-date-range-selection.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-javascriptOther plugins' skills for the same job
67 skills in this plugin
/syncfusion-javascript-3d-chartCreate interactive 3D charts in Syncfusion TypeScript and JavaScript. Immediately use this skill when user needs to build 3D visualizations, render 3D column/bar charts, configure 3D rotation and depth, visualize data in three dimensions, customize 3D chart appearance, handle 3D interactions, or implement advanced 3D features. Works with TypeScript (webpack/module-based) and JavaScript (CDN/ES5)./syncfusion-javascript-accordionBuild collapsible navigation panels with the Syncfusion TypeScript Accordion component. Use this skill when implementing vertical accordion menus, expanding/collapsing content panels, multi-step wizards, data-driven panels with dynamic content, tabbed navigation alternatives, or nested hierarchical content structures. Covers initialization, expand modes, animations, icons, templates, styling, data binding, and advanced use cases like form wizards./syncfusion-javascript-accumulation-chartImplements Syncfusion JavaScript accumulation charts (Pie, Doughnut, Funnel, Pyramid) for proportional and percentage-based visualizations. Use when displaying categorical or proportional data. Covers legend and label configuration, interactivity, accessibility, and customization. Works with TypeScript (modules) and JavaScript (CDN/ES5).