fixed the mindate issue on the calendar