Change date parsing method