Jump to content

Template:Datetime: Difference between revisions

From Joepedia
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#timef:{{{1|}}}|both}}}}</includeonly><noinclude>
<includeonly>{{#if:{{{1|}}}|{{Date|{{{1}}}}} {{Time|{{{1}}}}}</includeonly><noinclude>
Example:
Example:
   <code><nowiki>{{Datetime|2025-01-25T08:40:00}}</nowiki></code>
   <code><nowiki>{{Datetime|2025-01-25T08:40:00}}</nowiki></code>

Revision as of 08:54, 25 January 2025

Example:

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

{{#if:2025-01-25T08:40:00|2025-01-25T08:40:00 08:40

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

{{#if:2025-04-06T20:29:00|2025-04-06T20:29:00 20:29

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 and optionally a time zone).

Stringrequired