Jump to content

Template talk:ISO date

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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)[reply]

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 October 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)[reply]