Complex sentence: Completing his apprenticeship in June 1868, he took a steamship to New York City and stayed there for two weeks before continuing on to San Francisco, California via Panama.
Split into simpler sentences: Completing his apprenticeship in June 1868, he took a steamship to New York City. He stayed there for two weeks before continuing on to San Francisco, California via Panama.