Reformat missing-date query