Overview
Angular DateTime Picker or Angular Material DateTime Picker is a lightweight and mobile-friendly component that allows end users to enter or select date and time values from a pop-up calendar and drop-down time list. It provides month, year, and decade views for quick navigation to the desired date.

Masked date-time input
Allows users to enter valid dates and times in the correct format and avoid data input errors during data entry.
Custom date and time format
Change the default culture’s specific date and time format in the text box to improve readability or enter the value properly.
Date and time range
You can restrict the DateTime Picker, so that only date and time values within a specific range can be entered or selected by specifying the min and max date time options.
Disable dates
Disable any date in the Angular DateTime Picker to show it as an inactive date. Easily prevent weekends and holidays from selection by disabling them in the pop-up calendar.
DateTime Picker in multiple languages
Update the culture-specific datetime format and first day of the week, and translate the names of months, days, and today button text to any supported language with our globalization feature.
Date and time validation
Allow only valid values to be entered in the Angular DateTime Picker component’s input by validating them with disabled, out-of-min, and out-of-max date-time.

Custom DateTime Picker
Apart from the standard built-in themes, Angular DateTime Picker allows complete control to customize its appearance to suit your application.
Highlight weekends
Highlight any date in a year or every weekend in a month as special days using custom styling.
Change the first day of the week
Auto-update the first day of the week based on the specified culture or change it based on your application.
Week number in popup calendar
Show the week number of the selected day in the pop-up calendar by enabling the week number option.
Islamic DateTimePicker
In addition to the Gregorian DateTimePicker, the Angular DateTimePicker component supports displaying the Islamic DateTimePicker (Hijri DateTimePicker).
Web accessibility
- Fully supports WAI-ARIA accessibility that allows the DateTime Picker to be accessed by screen readers and assistive devices.
- Follows WAI-ARIA best practices for implementing keyboard interaction.
- Uses WCAG 2.0 based design for UI element visuals such as foreground color, background color, line spacing, text, and images
- Supports right-to-left (RTL) direction for users working with right-to-left languages like Hebrew and Arabic.
Responsive UI
The Angular Date Time Picker provides a responsive mode that gives an adaptive UI appearance for mobile devices.

Developer-friendly APIs
You can control all UI elements and their behaviors according to the end user’s requirements using a rich set of developer-friendly APIs.
Built-in themes
The Angular DateTime Picker supports several built-in themes such as Material, Bootstrap, Fabric (Office 365), Tailwind CSS, and High Contrast. Users can customize any one of these built-in themes or create new themes to achieve their own desired look and feel either by simply overriding SASS variables or using our Theme Studio application.
Other supported frameworks
DateTime Picker is also available in Blazor, React, Vue, and JavaScript frameworks. Check out the different DateTime Picker platforms from the links below,
Angular version compatibility
With continuous improvement in Angular versions, the Angular Date Time Picker is kept up to date to make it compatible with the latest version.
Angular DateTime Picker Code Example
Easily get started with the Angular DateTime Picker using a few simple lines of HTML and TS code example as demonstrated below. Also explore our Angular DateTime Picker Example that shows you how to render and configure a DateTime Picker in Angular.
<div class="control-section">
<div id="control_wrapper">
<ejs-datetimepicker></ejs-datetimepicker>
</div>
</div>import { Component, ViewEncapsulation, Inject } from '@angular/core';
@Component({
selector: 'control-content',
styleUrls: ['default-style.css'],
templateUrl: 'default.html',
encapsulation: ViewEncapsulation.None
})
export class DefaultDateTimePickerComponent {
public date: Object = new Date();
constructor( @Inject('sourceFiles') private sourceFiles: any) {
sourceFiles.files = ['default-style.css'];
}
}
