Modified classic's date parsing