method to turn date/time strings into time objects