Template talk:Newsdate: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Konoko (historical)
(New page: == Date Format == Is there a function or template that can convert the ISO8601 short date to a long date? <pre><div>[[News/{{{1}}}| {{{2| {{#date:{{{1}}}|pretty format}} }}}]]</div></pre>...)
 
imported>Sekoia (historical)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
<pre><div>[[News/{{{1}}}| {{{2| {{#date:{{{1}}}|pretty format}} }}}]]</div></pre>
<pre><div>[[News/{{{1}}}| {{{2| {{#date:{{{1}}}|pretty format}} }}}]]</div></pre>
20090108 = January 08, 2009
20090108 = January 08, 2009
: Yes, actually, there is! <nowiki>{{#time: l, F j, Y | 20090108}}</nowiki> yields {{#time: l, F j, Y | 20090108}}. I updated the template. -- [[User:Sekoia|Sekoia]] 05:44, 10 February 2010 (UTC)
: In case anyone ever wants to tweak the format string, more info can be found here: http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time -- [[User:Sekoia|Sekoia]] 05:45, 10 February 2010 (UTC)

Latest revision as of 05:45, 10 February 2010

Date Format

Is there a function or template that can convert the ISO8601 short date to a long date?

<div>[[News/{{{1}}}| {{{2| {{#date:{{{1}}}|pretty format}} }}}]]</div>

20090108 = January 08, 2009

Yes, actually, there is! {{#time: l, F j, Y | 20090108}} yields Thursday, January 8, 2009. I updated the template. -- Sekoia 05:44, 10 February 2010 (UTC)
In case anyone ever wants to tweak the format string, more info can be found here: http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23time -- Sekoia 05:45, 10 February 2010 (UTC)