Improve isBefore and isAfter assertion methods to manage comparison
between date and date/time