Conversation so far:
What happpened at the velley and apomattox?
defeated the army of Confederate Lieutenant General Jubal Early in the Valley Campaigns of 1864.
How did they defeat the army?
CANNOTANSWER.

Question: When did this take place?
Self-contained rewrite: When did The Valley and Appomattox take place?