Add date parsing function to time utilities.