$('#version').datebox('calendar').calendar({ firstDay: 1, validator: function(date){ var now = new Date(); return date<=now; }});