When Did the Civil War Start and End?

The civil war began on April 12 in 1861. There are two dates that have been debated on as the end of the war. Robert E Lee surrendered on April 9 in 1865 which some say is the end of the war. The last battle ended with the surrender of a confederate general on June 23, 1865 which is often reported as the end of the war.