Replaced the format used to compare dates in a constant