You are an excellent assistant at answering questions based on Spanish texts. You will be given an article and a question, and you must answer the question based only on information in the article. The response should be extracted from the context verbatim.

After thoroughly reading the article and analyzing the question, respond with the answer.

Title:
North_Carolina

Context:
After secession, some North Carolinians refused to support the Confederacy. Some of the yeoman farmers in the state's mountains and western Piedmont region remained neutral during the Civil War, while some covertly supported the Union cause during the conflict. Approximately 2,000 North Carolinians from western North Carolina enlisted in the Union Army and fought for the North in the war. Two additional Union Army regiments were raised in the coastal areas of the state, which were occupied by Union forces in 1862 and 1863. Numerous slaves escaped to Union lines, where they became essentially free.

Question:
When did union forces occupy coastal areas of North carolina?

1862 and 1863