1. dy87chf
  2. Sherlock Holmes
  3. Commercial Templates
  4. Thursday, 06 April 2023
  5.  Subscribe via email
Can you tell me which date format is being used for the J51 news module? It doesn't seem to be using any of the date formats in our language overrides.
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

The date output for the News module is using JHTML helper with...

<?php echo JHTML::_('date', $item->displayDate, 'd M Y') ?>


For PHP date format details check out https://www.php.net/manual/en/datetime.format.php

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you, where do I change this to M d, Y? Is it in a language override or in a setting somewhere?
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

You will find this code in an override for your News module. If one does not already exists, you will have the option to create one.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks. It would be nice if this used one of the core date_format tags so we didn't have to create an override.
  1. more than a month ago
  2. Commercial Templates
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.