"Dark Knight Court" is the sixteenth episode of the 24th season of "The Simpsons" and the 524th episode overall. It originally aired on the Fox network in the United States on March 17, 2013. The episode is dedicated to Janet and Maggy Reno's brother, Robert Reno, who died of Alzheimer's disease.
"Dark Knight Court" is an episode of "The Simpsons" written prior to 2013. 
There is no indication of when the episode was written, only when it aired (if anything, it's likely to be true that it was written prior to 2013 given its air date). 
( z1 episode :domain ( z2 broadcast-program :name ( z3 name :op "Dark" :op "Knight" :op "Court" ) ) :part-of ( z4 broadcast-program :name ( z5 name :op "The" :op "Simpsons" ) ) :ARG1-of ( z6 write :time ( z7 prior :op ( z8 date-entity :year 2013 ) ) ) )