Template:Date and time if provided/doc
Appearance
![]() | This is a documentation subpage for Template:Date and time if provided. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]Takes a date value, and returns a DMY date and time if both are provided. Returns just the date if the time is not provided or is set to midnight.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Date/time value | 1 | The date or date and time value being evaluated
| Date | required |
Date format | 2 | Format of the date part of the date (see the #time parser function documentation)
| Unknown | suggested |
Examples
[edit]{{tlx|date and time if provided|April 7, 1887}}
→ 7 April 1887{{tlx|date and time if provided|April 7, 1887 14:17}}
→ 7 April 1887 14:17