added new method to recognize when the date has changed