Fix date parsing, and strip off extra HTML at the end