code:
<script type="text/javascript">
// <![CDATA[
Calendar.setup({
inputField : 'shipping_arrival_date',
ifFormat : '%m-%d-%Y',
showsTime: false,
button : 'shipping_arrival_date_trig',
align: "Bl",
singleClick : true,
dateStatusFunc : disabledDate,
disableFunc: function(date) {
//disable previous day in datepicker
var now= new Date();
if(date.getFullYear()<now.getFullYear())
{
return true;
}
if(date.getFullYear()==now.getFullYear())
{
if(date.getMonth()<now.getMonth())
{
return true;
}
}
if(date.getMonth()==now.getMonth())
{
if(date.getDate()<now.getDate())
{
return true;
}
}
},
});
function disabledDate(date) {
var today = new Date();
return (["3-12-2019", "3-15-2019"].indexOf(date.getDate()) !== -1) ? true : false;
};
// ]]>
</script>
beforeShowDay
? Are you using a jQuery Datepicker widget? OtherwisedateStatusFunc
should be correct imho.