Originally reported on Google Code with ID 903
Can you please add disable past dates.
Reported by shemeermali on 2011-04-13 09:22:25
What do you mean?
You can easily manipulate your own data or use jquery to chceck if a clicked date is
in the past.. or if an event is in the past and remove it.. change color..
Reported by p.studioz on 2011-04-13 13:26:02
shemeerm, you need to be *much* more detailed with your feature request
Reported by adamrshaw on 2011-05-09 02:41:54
Done$('#calendar').fullCalendar({
...
dayRender: function(date, cell){
if (date > maxDate){
$(cell).addClass('disabled');
}
}
Reported by sathyajith.pr on 2014-09-04 06:04:39
Hi this is the validation did by me and works great form me:
var fulldate = startDate .split("/");
var start_month = fulldate[0];
var start_date = fulldate[1];
var start_year = fulldate[2];
var end_fulldate = endDate.split("/");
var end_month = end_fulldate[0];
var end_date = end_fulldate[1];
var end_year = end_fulldate[2];
var for_start = fulldate[2]+'/'+fulldate[0]+'/'+fulldate[1];
var for_end = end_fulldate[2]+'/'+end_fulldate[0]+'/'+end_fulldate[1];
//alert(for_start);
//alert(for_end);
var date1 = Date.parse(for_start);
var date2 = Date.parse(for_end);
if (date1 > date2)
{
alert ("End date can't be less than Start date!");
return false;
}
Reported by [email protected] on 2014-11-16 18:50:28