The joke is that they've not been given in ISO8601 format, and also that they're both ambiguous. For the second one, we can't even tell which of the ends is the year.
Might be the best xkcd alt text of all time. I knew if from memory, and as soon as I saw the comic I thought "I bet someone quoted the alt text in the top comment".