Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disable date range in Joomla calendar

I want to disable a date range in joomla calendar. Only the remaining days can be select. I have no idea how to do it. Plz help.

e.g. If I say 2012-2-20 to 2012-3-20 then only days in this range can be select all other has to be disable(or can not select).

Joomla Calendar Doc http://docs.joomla.org/API16:JHtml/calendar

like image 460
Sara Avatar asked Feb 20 '12 12:02

Sara


1 Answers

Set minDate and maxDate for your date limit, i.e.

$("#start_date").datepicker({
    dateFormat:'yy-mm-dd',
    showOn: 'button',
    buttonImageOnly: true,
    minDate: newmindate ,
    maxDate: newmaxdate 
});

Set variable newmindate and newmaxdate.

like image 199
Rakesh Avatar answered Oct 17 '22 19:10

Rakesh