hi.

how can i disable past days in ajax calendar extender?
user must only select one month period from the current date.

so if today is march 10, 2015 when user clicks the calendar, the enabled dates should only be from feb 10 to current date.

please help.

thanks..

$("#DatePick").datepicker({
   minDate: <%= DateTime.Now.ToShortDateString() %>
}); 

This will set min date to the current date. Only future dates are available to select. Set the 'minDate' argument to the date you need.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.