@perry You set the hours of the date objects to make the comparison. The altering of the date object may cause other problems. I would prefer if you used the `compare` functions.