syncfusion-react-datetimepicker
DateTimePicker (implementing-datetimepicker)
Component Overview
The Syncfusion DateTimePickerComponent provides a combined calendar and time picker with extensive configurability: min/max dates, time steps, masked input, localization, strict validation, RTL, and accessible keyboard navigation.
Documentation (read these references in order)
- 📄 Read: references/getting-started.md — installation, module setup, CSS imports, basic usage
- 📄 Read: references/api-reference.md — full properties, methods, and events
- 📄 Read: references/date-time-selection.md — selection patterns and constraints
- 📄 Read: references/time-configuration.md — step, minTime/maxTime, scroll behavior
- 📄 Read: references/events-and-methods.md — event handlers and method usage
- 📄 Read: references/styling-and-customization.md — themes and cssClass usage
- 📄 Read: references/advanced-features.md — masked input, strict mode, calendar modes, timezone handling
- 📄 Read: references/accessibility.md — keyboard and ARIA guidance
Quick Start (React + TypeScript)
- Install package:
npm install @syncfusion/ej2-react-calendars
- Import styles (in
index.cssor component CSS):
@import '../node_modules/@syncfusion/ej2-base/styles/material3.css';
@import '../node_modules/@syncfusion/ej2-calendars/styles/material3.css';
- Minimal functional example (
App.tsx):
import React, { useState } from 'react';
import { DateTimePickerComponent } from '@syncfusion/ej2-react-calendars';
export default function App() {
const [value, setValue] = useState<Date | null>(new Date());
return (
<div style={{ padding: 20 }}>
<h3>Choose date and time</h3>
<DateTimePickerComponent
value={value}
change={(e) => setValue((e as any).value)}
format="dd/MM/yyyy hh:mm a"
step={15}
placeholder="Select date and time"
/>
<p>Selected: {value ? value.toString() : 'none'}</p>
</div>
);
}
Common Patterns
- Controlled value: bind
valueand update onchange. - Range enforcement: use
minandmaxfor dates,minTime/maxTimefor times. - Masked input: enable with
enableMaskand providemaskPlaceholder. - Localization: set
localeor use global culture settings. - Keyboard-first: provide
keyConfigsfor custom shortcuts.
Key Props Summary (see API reference for full list)
value,min,max,step,format,enableMask,placeholder,cssClass,locale,readonly,enabled.
Key Events
change,open,close,created,destroyed,navigated,blur,focus,renderDayCell.
Next steps
- All reference files have been created and validated against the official Syncfusion API (see
references/api-reference.md). - Next: run the test-case guide and validation checks, then create automated examples or add platform-specific notes on request.
- Ask me to run tests, update
completion-status.json, or produce publish-ready artifacts.
More from syncfusion/react-ui-components-skills
syncfusion-react-grid
Implements Syncfusion React Grid component for feature-rich data tables and grids. Use this when working with data display, sorting, filtering, grouping, aggregates, editing, or exporting. This skill covers grid configuration, CRUD operations, virtual scrolling or infinite scrolling, hierarchy grids, state persistence, and advanced data management features for data-intensive applications.
104syncfusion-react-rich-text-editor
Implements the Syncfusion React Rich Text Editor (RichTextEditorComponent) from ej2-react-richtexteditor, supporting HTML (WYSIWYG) and Markdown editing. Use this skill for toolbar configuration, image/video/audio insertion, paste cleanup, AI assistant integration, emoji picker, slash menu, mentions, import/export Word/PDF, form validation, and source code view in React applications.
100syncfusion-react-themes
Use this skill when users need to apply themes, customize appearance, switch dark mode, use CSS variables, configure icons, or modify visual styling for Syncfusion React components. Covers icon library, size modes, and Theme Studio integration.
98syncfusion-react-scheduler
Implement Syncfusion React Scheduler component for calendar, event scheduling, and appointment management. Use this when building scheduling systems, calendar applications, booking systems, or time management interfaces. Covers all scheduler views (Day, Week, Month, Timeline, Agenda, Year), data binding, resource scheduling, recurring events, CRUD operations, drag-and-drop scheduling, customization, accessibility, and advanced features.
98syncfusion-react-common
Common utilities and features for Syncfusion React components. Use this skill when the user needs to implement animations, drag-and-drop, state persistence, RTL support, localization, globalization, security, templates, and advanced features for Syncfusion React components.
98syncfusion-react-gantt-chart
Implement, configure, and customize the Syncfusion React Gantt Chart component. Use this when building project scheduling applications with task timelines, dependencies, and resource management. Covers GanttComponent setup, task constraints, taskbar customization, filtering, sorting, Excel/PDF export, critical path analysis, milestones, predecessors, resource view, and baseline tracking.
96