not an answer to your question but,

since the date is in the header the date is "formated" as text, not as a date.