ClosestDate PHP utility class for getting the nearest date among an array of dates. Features Suppor for custom dates (not just "today". Support for prevalence on past dates or future dates.