updated date parsing and tests