Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Trimming Dates Down? (February > Feb)
Hello again!
I’ve made nice little div box in which I’m trying to place the date of a post using:
<div class="calendar">
<p class="month"><txp: posted format="%B" /></p>
<p class="day"><txp: posted format="%e" /></p>
</div>
However, the box is only 50px or so wide, so I need those months to be trimmed down to the initial three letters.
Any ideas?
Thanks,
Jordan
Last edited by surfwax95 (2008-04-08 22:24:15)
Caps lock is cruise control for cool. —Unknown
Offline
#2 2008-04-08 22:37:36
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Trimming Dates Down? (February > Feb)
Offline
Re: Trimming Dates Down? (February > Feb)
Thanks again, Els!
The strftime link really helped me out. I had no idea you could output so many different options with PHP.
Caps lock is cruise control for cool. —Unknown
Offline
Pages: 1