<script type="text/javascript" language="javascript"> function checkDate(sender, args) { var toDate = new Date(); toDate.setMinutes(0); toDate.setSeconds(0); toDate.setHours(0); toDate.setMilliseconds(0); if (sender._selectedDate < toDate) { alert("You cannot select past date more than 1 week!"); sender._selectedDate = toDate; // set the date back to the current date sender._textbox.set_Value(sender._selectedDate.format(sender._format)) } } </script>
TimeSpan diff = senderDate- DateTime.Today; if (diff.Days > 7) { alert("You cannot select past date more than 1 week!");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)