<head runat="server"> <title></title> <script src="Scripts/jquery-1.4.2.js" type="text/javascript"></script> <link href="Scripts/jquery-ui.css" rel="stylesheet" type="text/css" /> <script src="Scripts/jquery-ui.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { var date = new Date(); var currentMonth = date.getMonth(); var currentDate = date.getDate(); var currentYear = date.getFullYear(); $('#txtToDate').datepicker({ maxDate: new Date(currentYear, currentMonth, currentDate), dateFormat: 'yy-mm-dd' }); }); </script> </head>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)