Add compareTo method to date, time and date/time values