Disable past/old dates

Just added a few lines to disabling past/old dates..