Fix 7598: Preserve closed square brackets in displayDate but
remove single, unclosed brackets