modified event model to accept date and time as a comparator