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!