updated date parsing