Since at least 2004, it has been possible for registered users to set a preference regarding the way dates appear to them. Wikilinking all dates / years purely for the use of autoformatting is now discouraged (See MOS:UNLINKDATES).

There are four possible formats to choose from:

Dates that are wikilinked (see below) are autoformatted according to the user's chosen preference.

Autoformatting dates has had several disadvantages:

The following information is provided to document how date autoformatting works.

A combination of a day and a month, plus optionally a year, is autoformatted by adding square brackets, such as in these examples:

The square brackets instruct the MediaWiki software to format the item according to a user's date preferences.

The following table shows how the autoformatting mechanism behaves. The preference settings that a registered user can choose are displayed in the second row. The year and the day-month combination are wikilinked separately, except for dates in the ISO 8601 format. Full date formats not found in the first column are not autoformatted when wikilinked, and are likely to produce a redlink; for instance,

to all users, regardless of their date preference (or non-preference).

What you type What logged-in registered users see
(settings on first row)
What others will see[A]
January 15, 2001 15 January 2001 2001 January 15 2001-01-15 No preference
[[May 15]] May 15 15 May May 15 May 15 May 15 May 15
[[15 May]] May 15 15 May 15 May 15 May 15 May 15 May
[[May 15]], [[2005]] May 15, 2005 15 May 2005 2005 May 15 2005-05-15 May 15, 2005 May 15, 2005
[[15 May]] [[2005]] May 15, 2005 15 May 2005 2005 May 15 2005-05-15 15 May 2005 15 May 2005
  [[2005-05-15]] [B] May 15, 2005 15 May 2005 2005 May 15 2005-05-15 2005-05-15 2005-05-15
  1. ^ Non-registered users and registered users not logged in
  2. ^ Editors are discouraged from using this format since non-registered users, who constitute the majority of readers, may see a hard-to-read date format.

Even when surrounded by square brackets, those dates that do not contain both a day and a month—such as solitary months, solitary days of the week, solitary years, decades, centuries, and month-year combinations—are not autoformatted. One could make them links by using the standard piped-link notation, but the same advice applies here: such links should not be created unless they are of high value to the reader. (See WP:CONTEXT.)

Date elements on disambiguation pages and section headings should never be linked; the same applies to quotations, unless the original quote is linked.