We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The JavaScript DatePicker (Calendar Picker) is a lightweight and mobile-friendly control that allows end users to enter or select a date value. It has month, year, and decade view options to quickly navigate to the desired date. It supports minimum dates, maximum dates, and disabled dates to restrict the date selection.


JavaScript DatePicker or JS date selector with masked date input

Masked date input

Allows users to enter valid dates in the correct format and avoid data input errors during data entry.


Month or year picker

Select only the month or year as a value (Month Picker or Year Picker) from a pop-up calendar.


Custom date format

Change the default culture’s specific date format in the text box to improve readability or to enter the date properly in JS DatePicker.


Date selection within a date range

You can restrict the JavaScript Date Picker so that only a date value within a specific range of dates can be entered or selected by specifying the min and max date options.


Disabled dates

Disable any date in JS DatePicker to show it as an inactive date. Easily prevent weekends and holidays from selection by disabling them in the pop-up calendar.


Form support and date validation

Date values are validated within a min and max range. Strict mode behavior is used to enforce entering only a valid date value. In a form component, integrate the form validation plugin to perform custom validation in the date text box.

Form support and date validation in DatePicker JavaScript


DatePicker with multiple language

Update the culture-specific date 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 features.


Custom DatePicker

Apart from the standard, built-in theme, Javascript Date Picker provides you with complete control over the appearance of the component to customize the style 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 first day of week

Auto-update the first day of the week based on the specified culture or change it based on your application.


Week number

Show the week number of the selected day in the pop-up calendar by enabling the week number option in JavaScript Datepicker.


Islamic DatePicker

In addition to the Gregorian DatePicker, the DatePicker in JS supports displaying the Islamic DatePicker (Hijri DatePicker).


Other supported frameworks

The DatePicker component is also available in Blazor, React, Angular, and Vue frameworks. Check out the different DatePicker platforms from the links below,


Web accessibility

  • Fully supports WAI-ARIA accessibility that helps the DatePicker be accessed by on 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 in right-to-left languages like Hebrew and Arabic.

Mobile-friendly responsive DatePicker UI

The Date Picker in JS (JavaScript DatePicker) provides a responsive mode that gives an adaptive, redesigned UI appearance for mobile devices.


Developer-friendly API’s

You have control over all the UI elements and behaviors of the JS Datepicker components with a rich set of developer-friendly APIs so that you can provide the best experience to your end users.

Built-in themes

The HTML5 DatePicker 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.


JavaScript DatePicker Code Example

Easily get started with the JavaScript DatePicker using a few simple lines of HTML and TS code example as demonstrated below. Also explore our JavaScript DatePicker Example that shows you how to render and configure a DatePicker in JavaScript.

<div class="col-lg-12 control-section">
    <div id="wrapper">
        <input id="datepicker" type="text" />
        <br/>
        <br/>
    </div>
</div>
import { loadCultureFiles } from '../common/culture-loader';
import { DatePicker } from '@syncfusion/ej2-calendars';
/**
 * Default DatePicker sample
 */


    loadCultureFiles();
    let datepicker: DatePicker = new DatePicker({});
    datepicker.appendTo('#datepicker');



70+ JAVASCRIPT UI CONTROLS

Frequently Asked Questions

The Syncfusion JavaScript DatePicker provides the following features:

  • Automatically adjust display position based on view page.
  • Customize the content with icons, images, or a dynamic AJAX template.
  • Enhance the open and close of a popover with out-of-the box animations.
  • One of the best JavaScript DatePicker in the market that offers feature-rich UI to interact with the software.
  • Simple configuration and API.
  • Supports all modern browsers.
  • Mobile-touch friendly and responsive.
  • Expansive learning resources such as demos and documentation to learn quickly and get started with JS DatePicker.

We do not sell the JavaScript DatePicker separately. It is only available for purchase as part of the Syncfusion JavaScript suite, which contains over 70 JavaScript components, including the DatePicker. A single developer license for the Syncfusion Essential Studio for JavaScript suite costs $995.00 USD, including one year of support and updates. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team today to see if you qualify for any additional discounts.

You can find our JavaScript DatePicker demo here.

No, our 70+ JavaScript components, including DatePicker, are not sold individually, only as a single package. However, we have competitively priced the product so it only costs a little bit more than what some other vendors charge for their DatePicker alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 70+ JavaScript components for a flat fee of $995/developer. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team today to see if you qualify for any additional discounts.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.

A good place to start would be our comprehensive getting started documentation.

Read independent,
authenticated reviews
on G2

Download Now Pricing

What do our customers say about us?

double quotes

We're using the file formats and Windows/JavaScript list controls a lot. They're fast, easy to use, and the documentation is good and contains examples. Tickets with questions or suggestions were answered within a day, so we're happy to use the Syncfusion libraries.
Daniel Persidok

Daniel Persidok

wpd onshore GmbH & Co. KG

double quotes

Using Syncfusion Angular and JavaScript controls makes front-end web development a piece of cake. Each component has many properties that can be configured as per your desire, methods that can be used to interact with the element, and a lot of events that trigger at different stages, which makes modifying your components according to the state of the application an easy task. Also, their support is amazing! They always offer a sample working project, which makes it very simple to solve your question about your code.
Carlos Rodriguez Garcia

Carlos Rodriguez Garcia

Vistatec

Transform your applications today by downloading our free evaluation version Download Free Trial

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile