Add date parsing logic