Change the formatof Post's DATE

GK User
Wed Jun 17, 2015 1:58 pm
hi there!
I 'm using joomla university theme, How can I change the format of the post's date; for example I wanna have this structre:

31 May (It's already in this structure: May 13).

Best wishes
User avatar
Junior Boarder

GK User
Thu Jun 18, 2015 7:25 am
Hi,
small fun in code is before you.
if we talk about standard joomla articles : templates\gk_university\html\com_content\article\default.php
and find :
<small><?php echo JHTML::_('date', $this->item->publish_up, JText::_('M j')); ?></small>
and
<small><?php echo JHTML::_('date', $this->item->created, JText::_('M j')); ?></small>


change order of M j - besides those are php basic (date / time values).
User avatar
Platinum Boarder

GK User
Fri Jun 19, 2015 5:19 pm
Excellent; Thanks a lot ;)
User avatar
Junior Boarder

GK User
Sun Jun 21, 2015 9:09 pm
and if you add "Y" after you will get a year, it might be useful for blog post.
User avatar
Platinum Boarder


cron