Better error reporting when dates do not match date ranges