The joke is a pun on the word 'dated'.  Dated can mean 'relevant to only a specific time', but it can also mean having gone on a date--a romantic outing with someone.  The joke is that the jokes that aren't dated are married, and marriage generally comes after dating someone for a while.
Some jokes get dated , other jokes get married .