Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-08 22:23:40

surfwax95
Member
Registered: 2008-04-04
Posts: 38
Website

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)

<txp:posted format="%b" />

txp:posted
strftime

OK, one more: Alphabetical Tag Listing :)

Offline

#3 2008-04-08 22:39:22

surfwax95
Member
Registered: 2008-04-04
Posts: 38
Website

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

Board footer

Powered by FluxBB