This should be 1862.
And the August date is most likely the date he left the Union prison and not the date he was "exchanged" at Vicksburg. Various records show some members of this regiment being released at Vicksburg during the period of Sept. 13-16, 1862.