Alan Shepard went to the moon as the commander of the Apollo 14 mission which launched on January 31 1971, and landed back on earth on February 9th. The actual moon landing was on the 5th February.
Alan Bean walked on the moon on 19 and 20 November, 1969. He investigated the lunar surface as part of the Apollo 12 mission.. The total time he spent walking on the surface was approximately 8 hours.