This television episode refers to:
June 8, 1984
After Ted goes around the bride to get permission to bring a date, Marshall suggests that he do other stupid things, like "feed a gremlin after midnight." This phrase references the care instructions for the creatures in Gremlins, which included keeping them out of sunlight, not getting them wet, and not feeding them after midnight.