Convert date-time string to datetime objects.