Months and months. There's no way that this was written after Ft. Hood and aired already. Most one hour dramas start filming in the spring/early summer. Since we're roughly 1/2 through the season, this was probably written over the summer and shot sometime in August or early September.
Yeah, I think you’re right. But you have to admit that did seem like a pretty big coincidence to have two episodes on the same night with “Reversed Fort Hood” themes, six weeks after the massacre.