Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
date() function question
When I want to display for example the name of the month with three letters I use “M” ( in php ), when I want to display day in a two digit number I use “j”.
Basically what Im asking for is, how do I display those things?
“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )
Offline
Re: date() function question
And the short answer is:
<txp:php>echo date("M j");</txp:php>
Or if you need those to display article-publishing date, use txp:posted
<txp:posted format="%b %d" />
Cheers!
Last edited by Gocom (2007-12-10 15:01:22)
Offline
Re: date() function question
Thanks a million!
“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )
Offline
Pages: 1