 " Halloween " is the fifth episode of the second season of the American comedy television series The Office , and the show 's eleventh episode overall . It was written by executive producer and showrunner Greg Daniels and was directed by Paul Feig . The episode first aired on NBC in the United States on October 18 , 2005 . Guest stars in this episode included Devon Abner , Hugh Dane , George Gaus , Annabelle Kopack , Ava Nisbet and Alec Zbornak . 
