add a help method to compare date and time