Use equalsDate instead of equals