fix date formatter to handle non-date-strings