Jquery Datepicker Date Range Restriction in

18 Jun 2015 Kamal Pratap
1 Comments 5202 Views

Here we explain how to set jquery datepicker on textbox with date range validator in Yor can set it using mindate and maxdate properties.

Jquery Datepicker Date Range Restriction in


<html xmlns="">
<head runat="server">
    <title>jQuery UI Datepicker in Asp.Net</title>
    <link rel="stylesheet" href="">
    <script src=""></script>
    <script src=""></script>
        $(function () {
            $("#datepicker").datepicker({ minDate: -5, maxDate: +5 });
    <form id="form1" runat="server">
        <asp:TextBox ID="datepicker" runat="server"></asp:TextBox>


Kamal Pratap

I have 6+ years experience in .Net technologies like Asp.Net, C#, WCF, Web Services, SQL Server, Ajax, LinQ. Currently I am working in Netcarrots Loyalty Services as a Software Developer.


  1. Nice one..

    1. Thanks..

Leave a Comment