how can i split the news date string

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
africanshox

how can i split the news date string

Post by africanshox »

i want to split the news date string so that i can style them individually using css to achieve something similar to this as a news section:

http://www.allpaymedia.com/

can anybody point me in the right direction as to what i have to do?

thanks in advance
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: how can i split the news date string

Post by calguy1000 »

I'd try using the smarty modifier date_format on $entry->postdate
i.e:

{$entry->postdate|date_format:"%b"}
{$entry->postdate|date_format:"%d"}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
africanshox

Re: how can i split the news date string

Post by africanshox »

quick response!!!

thank you it works :-*
Locked

Return to “CMSMS Core”