How to change Date format of the post?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Feb 13, 2014 8:37 pm
Reply with quote
Report this post
Hi,

I'll be very happy if you can help me on changing the date display format of the post.

I do not wat it to display: 2nd MAR, or 14thDEC but just: 2 MAR 14 DEC i.e. no st, nd, rd, th nest to the day number.

Thank you in advance.
Pozdrawiam
Tomek
User avatar
Fresh Boarder

teitbite
Fri Feb 14, 2014 8:28 pm
Reply with quote
Report this post
Hi

Please tell me the url to the page where I can see an example of this date.
User avatar
Moderator

GK User
Mon Feb 17, 2014 9:50 am
Reply with quote
Report this post
Hi,

here you have, I've used demo page:

http://demo.gavick.com/joomla25/mo/inde ... ingle-post

after switching to Polish months are translated but day has still En. caption, so i thought it can be teplate side function.

Best regards
Tomek
User avatar
Fresh Boarder

teitbite
Wed Feb 19, 2014 6:48 pm
Reply with quote
Report this post
Hi

There is no date functions in template. Can You please tell me the url to an example on Your site. The link You posted above is not working.
User avatar
Moderator

GK User
Sat Mar 08, 2014 9:13 am
Reply with quote
Report this post
I'm very sorry for such a late replay but... real life :)

Please check private message for login details.

Thank you.
User avatar
Fresh Boarder

teitbite
Sun Mar 09, 2014 5:33 pm
Reply with quote
Report this post
Hi

You need to edit files: /html/com_content/article/default.php and /html/com_content/category/blog_item.php, there look for constructions like for examle:

Code: Select all
JHtml::_('date', $this->item->publish_up, 'jS')


The "jS" is a reason of it and if You remove "S" leaving only "j" than You will only see the number.
User avatar
Moderator

GK User
Mon Mar 10, 2014 2:34 pm
Reply with quote
Report this post
Thank you very much,

regards :)
User avatar
Fresh Boarder

teitbite
Tue Mar 11, 2014 7:43 pm
Reply with quote
Report this post
Hi

No problem. Glad I could help :)
User avatar
Moderator


cron