Working date parsing