I tried to disable the future date in date picker but thing is it has been disable the month and the year.
following is the code.
<html>
<head>
<title>Week Calculation</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/jquery-ui.css" />
<script src="JavaScript/jquery-1.10.2.js"></script>
<script src="JavaScript/jquery-ui.js"></script>
</head>
<body>
<form id="daterange">
<p>Date1: <input type="text" id="datepicker1" name="date1"></p>
<p>Date2: <input type="text" id="datepicker2" name="date2"></p>
<p> <label> Enter search Text: </label> <input type="text" id="byrange" name="searchText"> </p>
<p> <input type="submit" /></p>
</form>
</body>