Difference between revisions of "Template:Datetime"
Jump to navigation
Jump to search
FireonLive (talk | contribs) m (bring back the space? is there a better way without having a trailing one on the 'date-only' version?) |
m (<includeonly>) |
||
Line 1: | Line 1: | ||
{{#formatdate:{{{1}}}}}{{#if:{{{2|}}}|<nowiki/> {{{2}}} {{{3}}} (UTC{{{4}}})|}}<noinclude> | <includeonly>{{#formatdate:{{{1}}}}}{{#if:{{{2|}}}|<nowiki/> {{{2}}} {{{3}}} (UTC{{{4}}})|}}</includeonly><noinclude> | ||
== Help == | == Help == | ||
Takes a date and time and formats it consistently across the wiki, using the user's preferences for the date portion. | Takes a date and time and formats it consistently across the wiki, using the user's preferences for the date portion. |
Revision as of 01:50, 2 September 2023
Help
Takes a date and time and formats it consistently across the wiki, using the user's preferences for the date portion.
Usage:
- Date & Time:
{{datetime|ISO 8601 date|24h time|timezone|+/- from UTC}}
- Date:
{{datetime|ISO 8601 date}}
Example:
- Date & Time:
{{datetime|2023-08-28|22:00|CEST|+2}}
turns in to2023-08-28 22:00 CEST (UTC+2)
- Date:
{{datetime|2023-08-28}}
turns in to2023-08-28