The Glee episode “The Rocky Horror Picture Show” (Season 2, Episode 5) aired on October 27, 2010.
It was a musical tribute to the 1975 cult film, featuring the cast performing “Time Warp,” “Sweet Transvestite,” and other numbers.