" Training Day " is the twentieth episode of the seventh season of the American comedy television series The Office and the shows 146th episode overall . It originally aired on NBC on April 14 , 2011 . The episode was written by Daniel Chun and directed by Paul Lieberstein . This episode marks the first appearance of Deangelo Vickers ( Will Ferrell ) in the series .