Parse time string into datetime obj