IF he resigned so early on, why does it say discharged in 1865?
They were in error.
He resigned for health reasons August 20, 1862, The Surgeon found " . . . him unfit for the duties of a soldier or officer because of a worn out constitution caused from Pulmonary disease of several years standing"