Have you by any chance got a blank line after the headers and before the dates?
In reply to Re^5: Need help comparing 4 dates (Fixed.) by BrowserUk in thread Need help comparing 4 dates by dirtdog