Template:Datetime: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}|{{Date|{{{1}}}}} {{Time|{{{1}}}}}</includeonly><noinclude> | <includeonly>{{#if:{{{1|}}}|{{Date|{{#timef:{{{1}}}|date}}}} {{Time|{{{1}}}}}}}</includeonly><noinclude>= Example: = | ||
Example: | <pre><nowiki>{{Datetime|2025-01-25T08:40:00}}</nowiki></pre> | ||
{{Datetime|2025-01-25T08:40:00}} | {{Datetime|2025-01-25T08:40:00}} | ||
<pre><nowiki>{{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}}</nowiki></pre> | |||
{{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}} | {{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}} | ||
= See also: = | |||
* [[Template:Date]] | |||
* [[Template:Time]] | |||
= Template Data = | |||
<templatedata> | <templatedata> | ||
{ | { |
Latest revision as of 09:01, 25 January 2025
Example:
{{Datetime|2025-01-25T08:40:00}}
25 January 2025 08:40
{{Datetime|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}T{{CURRENTTIME}}:00}}
6 April 2025 20:29
See also:
Template Data
Shows a date and time, localised to the user's preference.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Time | 1 | The time on a given date, given in ISO 8601 format (YYYY-MM-DDTHH:MM:SS and optionally a time zone). | String | required |