How to typeset range expressed with dash of two ISO8601 dates ?
2010-01--2012-03
or
2010-01---2012-03
or another option ?
datetimeformattingpunctuation
How to typeset range expressed with dash of two ISO8601 dates ?
2010-01--2012-03
or
2010-01---2012-03
or another option ?
Best Answer
Of the two possibilities you offer, the first one — the one with the "en-dash" — is the (much) better one. In good typography, en-dashes are used (inter alia) to denote ranges of numbers, dates, years, etc. In contrast, em-dashes are frequently used to offset auxilliary, explanatory, or parenthetical thoughts. For much more on this subject, check out the question Dashes: - vs. – vs. — and the associated answers.
By the way, to streamline the typesetting of dates in various formats, including ISO 8601, check out the datetime package. For instance, the following MWE
will typeset system dates automatically in ISO 8601 format: