Template:Datetime
Revision as of 23:26, 19 October 2023 by JustAnotherArchivist (talk | contribs) (Default to UTC when no time zone is specified)
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}}
or{{datetime|ISO 8601 date|24h time in 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)
{{datetime|2023-10-01|13:37}}
turns into2023-10-01 13:37 UTC
- Date:
{{datetime|2023-08-28}}
turns in to2023-08-28