Template talk:ISO date
| This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
| ||||||||
Microformat classes
[edit]I made this template emit the the classes needed by hAtom (class="updated"), hCalendar (class="dtstart") and hCard (class="bday") microformats; and I created {{ISO end date}} to do exactly what this template does, but with the class="dtend" used by hCalendar. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 22:49, 11 November 2008 (UTC)
When the day of the month is omitted in the input
[edit]Well some known problems is {{ISO date|Oct-2005}} should output as 2005-10 but instead it outputs as 2005-10-01.
Well here's the thing
{{ISO date|October 2005}} outputs as 2005-10 which is correct
{{ISO date|Oct 2005}} outputs as 2005-10 which is also correct
{{ISO date|Oct. 2005}} outputs as 2005-10-01 still keeps the day of the month
{{ISO date|Oct-2005}} outputs as 2005-10-01 also still keeps the day of the month
Even when you use all caps
{{ISO date|OCT 2005}} outputs as 2005-10-01 again keeps the day of the month
Well the thing is the {{date}} template when it outputs only the month and year, they all should output as whatever was intended as December 2025.
{{date|June 2006|ISO}} still leaves the result as June 2006 does not output as 2006-06.
{{date|June 2006|YMD}} still also leaves the result as June 2006 does not output as 2006 June 131.241.53.31 (talk) 04:29, 4 September 2025 (UTC)