Template:Datetime

Revision as of 08:42, 25 January 2025 by Latty (talk | contribs) (Created page with "<includeonly>{{#if:{{{1|}}}|{{#timef:{{{1|}}}|both}}}}</includeonly><noinclude> Example: <code><nowiki>{{Datetime|2025-01-25T08:40:00}}</nowiki></code> {{Datetime|2025-01-25T08:40:00}} <code><nowiki>{{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}}</nowiki></code> {{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}} <templatedata> { "params": { "1": { "label": "Time", "description": "The time on a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example:

 {{Datetime|2025-01-25T08:40:00}}

08:40, 25 January 2025

 {{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}}

19:22, 6 April 2025

Shows a date and time, localised to the user's preference.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Time1

The time on a given date, given in ISO 8601 format (YYYY-MM-DDTHH:MM:SS).

Stringrequired