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 ASP.NET MVC Date Range Picker is a lightweight and mobile-friendly component that allows end users to select start and end date values as a range from a calendar pop-up or by entering values directly in the HTML input text box.


Why choose Syncfusion ASP.NET MVC DateRangePicker?

ASP.NET MVC DateRangePicker customizable date formats .

Customizable date formats 

The ASP.NET MVC DateRangePicker component’s input value can be customized in addition to the default culture-specific date format. 

ASP.NET MVC DateRangePicker present range.

Preset range

Define preset ranges (like last 30 days or last week) to set date ranges frequently used by the end users.

ASP.NET MVC DateRangePicker adapts to any resolution.

Adapts to any resolution

The Date Range Picker has a highly responsive layout and an optimized design for desktops, touch screens, and smart phones. It works well on all mobile phones that use iOS, Android, or Windows OS.

ASP.NET MVC DateRangePicker specific date restrictions.

Specific date restrictions

Restricts dates outside the min and max date ranges, allowing only valid dates to be entered. Users cannot enter or choose restricted dates.

ASP.NET MVC DateRangePicker customizable theme.

Attractive customizable themes

Cutting edge design with 5+ built-in themes such as Fluent, Tailwind CSS, Bootstrap, Material, Fabric, and more. Utilize the online Theme Studio tool to customize themes of Date Range Picker easily.

ASP.NET MVC DateRangePicker globalization and localization.

Globalization and localization

Enables users from different locales to use the DateRangePicker by formatting dates, currency, and numbering to suit preferences.


ASP.NET MVC Date Range picker Code Example

Easily get started with the ASP.NET MVC Date Range picker using a few simple lines of CSHTML and C# code example as demonstrated below. Also explore our ASP.NET MVC Date Range picker Example that shows you how to render and configure a Date Range picker in ASP.NET MVC.

@using Syncfusion.EJ2
@section ControlsSection{
    <div class="col-lg-12 control-section">
        <div id="wrapper">
            @Html.EJS().DateRangePicker("daterangepicker").Placeholder("Choose a Range").Render()
        </div>
    </div>
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using EJ2MVCSampleBrowser.Models;

namespace EJ2MVCSampleBrowser.Controllers
{
    public partial class DateRangePickerController : Controller
    {
        // GET: DefaultFunctionalities
        public ActionResult DefaultFunctionalities()
        {
            return View();
        }
    }
}

DateRangePicker with multiple language

The ASP.NET MVC DateRangePicker supports globalization to translate the names of months, days, and the today button text to any supported language. The date format and first day of the week are set to a specific culture.

Multi language support in ASP.NET MVC DateRangePicker


Date selection within a range in ASP.NET MVC DateRangePicker

Date selection within a range

Enter or select a date within a specific range of dates by defining the min and max properties.


Date-range validation

Allow only valid values to be entered in the DateRangePicker control’s input by validating them with disabled or out-of-min and out-of-max date ranges. The invalid and out-of-date-range values are set in a disabled state to prevent users from entering them or selecting them from a date range.

Date range validation in ASP.NET MVC DateRangePicker


ASP.NET MVC DateRangePicker customization

Customize DateRangePicker

Control the appearance of the component. Customize the style based on your application’s look and feel.


Week numbers

Show the week numbers in the pop-up calendar.

Week number in ASP.NET MVC DateRangePicker


First day of week in ASP.NET MVC DateRangePicker

First day of week

Change the first day of the week in every month of a year.


Web accessibility

  • Fully supports WAI-ARIA accessibility guidelines that allow the daterangepicker to be accessed by screen readers and assistive devices.
  • Follows WAI-ARIA best practices for implementing keyboard interaction.
  • UsesWCAG 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

Web Accessibility in ASP.NET MVC DateRangePicker


Accessibility

Keyboard navigation in ASP.NET MVC DateRangePicker.

Keyboard navigation

The ASP.NET MVC DateRangePicker control ensures that every cell is accessible using the keyboard. Major features like sort, select, and edit can be performed using keyboard commands alone; no mouse interaction is required. This helps in creating highly accessible applications using this control.

Accessibility and screen reader support in ASP.NET MVC DateRangePicker.

Screen reader

The ASP.NET MVC DateRangePicker view has complete WAI-ARIA accessibility support. The DateRangePicker UI includes high-contrast visual elements that help visually impaired people to have the best viewing experience. Also, valid UI descriptions are easily accessible through assistive technologies such as screen readers.

Show right-to-left language in ASP.NET MVC DateRangePicker.

Right to left (RTL)

Right-to-left rendering allows displaying the text and layout of the DateRangePicker from right to left. This improves the user experience and accessibility for RTL languages.





Other supported frameworks

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

Supported browsers

The ASP.NET MVC Date Range Picker works well with all modern web browsers such as Chrome, Firefox, Microsoft Edge, Safari, and Opera.

Supported browsers

85+ ASP.NET MVC UI CONTROLS

Frequently Asked Questions

You can find our ASP.NET MVC DateRangePicker demo, which demonstrates how to render and configure the Date Range Picker.

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, 5 or fewer developers, and 10 or fewer total employees.

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

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

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
Live Chat Icon For mobile