Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

This template is used to show a date in the language set in the preferences.

You can leave out parts of the data.

Usage

{{Date |year= |month= |day= |hour= |minute= |second= |lang= }}

Examples:

  • {{date|2009|1|9}} → 9 January 2009
  • {{date|2009|1|9|pl}} → 9 stycznia 2009
  • {{date|2009|1|9|pl|form=}} → 9 stycznia 2009 - alternative way to get nominative case
  • {{date|2009|1|9|pl|form=gen}} → 9 stycznia 2009
  • {{date|2009|1|9|pl|form=ins}} → 9 stycznia 2009
  • {{date|2009|1|pl}} → styczeń 2009
  • {{date|2009|1|pl|form=gen}} → styczeń 2009
  • {{date|2009|1|pl|form=ins}} → styczeń 2009

Does not check existence, except for the month number:

  • {{date|2009|12|33}} → December 2009
  • {{date|2009|17|33}} → 2009

Microformat

The template returns the date, embed in a <time> element with attribute datetime that contain the date in the ISO 8601 format needed by the hCalendar (class="dtstart") microformat. See the microformats project.

Template parameters

ParameterDescriptionDefaultStatus
year
1
yearnumber of the yearemptyoptional
month
2
monthnumber of month in the yearemptyoptional
day
3
daynumber of day in the monthemptyoptional
hourhourhour in 0-23 rangeemptyoptional
minuteminuteminutes in 0-59 rangeemptyoptional
secondsecondseconds in 0-59 rangeemptyoptional
lang
4
languagelanguage code (overrides user's preferences)language code of the user languageoptional
casecaseallows to specify grammatical case for the month in YYYY-MM dates, for languages that use them. Possible cases: Also Partitive (ptv), Inessive (ine), Elative (ela) and Illative (ill) cases are supported for Finnish language, in addition to Nominative and Genitive (gen).emptyoptional
classclassallows to set the html class of the time node where the date is included. This is useful for microformats. The default value is, for legacy reasons, "dtstart" (used by hCalendar). See the microformats project. "class=" will remove all metadata.dtstartoptional

Additional information

The template is intended to be used in the following namespaces: the Template namespace

The template is intended to be used by the following user groups: all users

Relies on:
Module:Date

See also

{{ISOdate}} – Template used to parse the date in {{Information}}<br\> {{Other date}} - Allows to specify a range of non-trivial date notations in a format that is localizable

== Localization ==


Cookies help us deliver our services. By using our services, you agree to our use of cookies.