here i'm checking with today's date... check this...
<script type="text/javascript">
function checkDate(sender, args) {
if (sender._selectedDate < new Date()) {
alert("You cannot select a day earlier than today!");
sender._selectedDate = new Date();
// set the date back to the current date
sender._textbox.set_Value(sender._selectedDate.format(sender._format))
//var text=document.getElementById('txtClosingDate');
//text.value=null;
}
}
</script>
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtOpenDate"
OnClientDateSelectionChanged="checkDate" PopupPosition="Right" PopupButtonID="Image3">
</cc1:CalendarExtender>
call check date function in OnClientDateSelectionChanged event
Stanly
My Blog If this post was useful to you, please mark it as answer