Module:Date period/doc

Usage

 * For templates, you might want to use Date period instead.

Automatically formats two given dates with a space and and en dash. Dates can be of any format supported by Module:Date.

If the month is the same, it is only shown once. If the month and day is the same, it will not show a second part at all. If the year is different, it will show the year unless disabled.

The year can be forcefully shown with the  parameter (third parameter of  ).

If one of the dates is invalid, the raw text will be displayed instead.