Template:ICDate
For a given OOC date, displays the corresponding IC date.
Usage:
{{ICDate|<date>|format=<format>|displaypart=<displaypart>}}
| Parameters | |
|---|---|
| date | (Optional) The OOC date to convert. The exact format accepted should be relatively flexible. Defaults to the current OOC date. |
| format | (Optional) A format code to control the output of the date. Accepts the same codes that the {{#time}} parser function accepts. See below for a shortened table. Defaults to "F j, Y", which gives an output similar to "Dec 11, 2012". |
| displaypart | (Optional) Whether or not to include which part of the IC date it is (e.g., "Part 1" or "Part 2".) Defaults to 0 (false.) |
Note: If you are using a fixed date, please use {{subst:ICDate|<date>|format=<format>|displaypart=<displaypart>}} so the date is calulated once and permanently included in the page.
Format Code Quick Reference
A quick reference of common formatting codes that may prove generally useful. The full table can be found here.
These example values are based on the current IC Date of February 4, 2013:
| Code | Result | Current IC Value |
|---|---|---|
| Y | 4-digit year | 2013 |
| y | 2-digit year | 13 |
| n | Month index, not zero-padded | 2 |
| m | Month index, zero-padded | 02 |
| M | An abbreviation of the month name | Feb |
| F | Full month name | February |
| j | Day of the month, not zero-padded | 4 |
| d | Day of the month, zero-padded | 04 |
| D | An abbreviation for the day of the week. | Mon |
| l | The full weekday name. | Monday |
Examples:
{{ICDate}}
February 4, 2013
{{ICDate|June 27 2025}}
June 1, 2012
{{ICDate|2025-06-27|format=l, F j, Y}}
Friday, June 1, 2012
{{ICDate|displaypart=1}}
February 4, 2013 Part 2
{{ICDate|+1 day|displaypart=1}}
February 5, 2013 Part 1