Add isBefore and isAfter methods to date, time and date/time values