CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules

This is the documentation page for Module:ISOdate

This module is intended for processing of date strings. Currently used by:

It relies on Module:DateI18n

ISOdate

edit

This function is the engine behind {{ISOdate}}. Please see that template for full documentation

Usage:

should not be used directly but only through {{ISOdate}} template

Parameters:

|date=date or |1=date
a valid date in "YYYY-MM-DD HH:MM:SS" format; this date can be abbreviated with less fields (e.g. only the year), and leading zeroes in each numeric field may be dropped; this date may be optionally followed by a required space and any trailing text (which should be between parentheses) parsed and left as is in the ouput; if the specified date is not in a valid format, the value of this parameter will be returned as is.
|class=class
optional parameter for embedding the output within an invisible HTML <span class="class" lang="lang" dir="ltr or rtl">...</span> element with this class, also tagging the specified language and its direction (by default, use |class=dtime, as defined in microformats); set it to an empty value to remove this invisible HTML tag; this microtag is also not emitted if the given date cannot be parsed with one of the supported formats and its value will be returned as is.
|lang=lang
optional BCP 47 code of a language (not an interwiki code) used to translate the generated visible date (also used to properly tag the generated microformat, if it is generated, in the standard lang="lang" attribute of HTML)
|case=case
optional parameter for handling grammatical cases (such as genitive) in the translated date; only valid with some specific languages.
|trim_year=flag
optional parameter which allows (when it is set to a nn-empty value) to not display additional leading zeroes for years; by default or when this parameter is empty, years are rendered with at least 4 digits, padding them with zeroes as necessary.

ISOyear

edit

This function is the engine behind {{ISOyear}}. Please see that template for full documentation

Usage:

should not be used directly but only through {{ISOyear}} template

Parameters:

1
date or 1 parameter

See Also

edit
Modules related to internationalization (i18n) of dates
{| class="wikitable sortable" border="1"
Module Name Uses Module Used by Module Used by Template Comment
Module:DateI18n Module:I18n/date Module:ISOdate Template:Date Create date string in any language
Module:ISOdate Module:DateI18n Module:Complex date Template:ISOdate & Template:ISOyear Parse YYYY-MM-DD date string
Module:Roman Module:Complex date
Module:Ordinal
Template:Roman Create Roman numerals
Module:Ordinal Module:I18n/ordinal
Module:Roman
Module:Complex date Template:Ordinal Create Ordinal numerals
Module:Complex date Module:I18n/complex date
Module:ISOdate
Module:Roman
Module:Ordinal
Template:Other date (not deployed yet) Create complex date phrases in many languages

|}