parsing into datetime and time types