My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 903: Diasble past dates
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  May 2011


Sign in to add a comment
 
Reported by shemeerm...@gmail.com, Apr 13, 2011
Can you please add disable past dates.
Apr 13, 2011
#1 p.stud...@gmail.com
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..

May 8, 2011
Project Member #2 adamrs...@gmail.com
shemeerm, you need to be *much* more detailed with your feature request
Status: Done
Sep 3, 2014
#3 sathyaji...@gmail.com
$('#calendar').fullCalendar({
    ...
    dayRender: function(date, cell){
        if (date > maxDate){
            $(cell).addClass('disabled');
        }
    }
Nov 16, 2014
#5 ash...@mashaaz.com
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;
               }
Sign in to add a comment

Powered by Google Project Hosting