clean date parsing