post date: only date, no time

macais
17 Posts
macais posted this 26 January 2018

Hello!

I use Joomla 3.8 and generated my template.
the post date is shown like: 18. September 2017, but no time.

I would like to have ist like this : 18. September 2017 - 17:45

Would be nice, if someone could help. thx

Hello! I use Joomla 3.8 and generated my template. the post date is shown like: 18. September 2017, but no time. I would like to have ist like this : 18. September 2017 - 17:45 Would be nice, if someone could help. thx
Vote to pay developers attention to this features or issue.
7 Comments
Order By: Standard | Newest
Vitaliy WD
415 Posts
Vitaliy WD posted this 26 January 2018

Hello.

Check this manual: https://www.ostraining.com/blog/joomla/change-joomla-s-date-format/
But please note that for Joomla 3 date format is DATE_FORMAT_LC3 (not DATE_FORMAT_LC2).

Hello. Check this manual: https://www.ostraining.com/blog/joomla/change-joomla-s-date-format/ But please note that for Joomla 3 date format is DATE_FORMAT_LC3 (not DATE_FORMAT_LC2).
macais
17 Posts
macais posted this 30 January 2018

Hello!

Thanks for your answer.
This works fine, when I need an override for all.

But I tried to have this (Published: 24 January 2018 11:52) only in Post date.

Thanks

Hello! Thanks for your answer. This works fine, when I need an override for all. But I tried to have this (Published: 24 January 2018 11:52) only in Post date. Thanks
Support Team
Support Team posted this 31 January 2018

Hi,

As alternative you can try to output the date manually using CMS Code control. For example:
<?php echo JHtml::_('date', $item->date, 'd F Y H:i'); ?>

This is regular joomla code.

Thank you,
Olivia

Hi, As alternative you can try to output the date manually using CMS Code control. For example: `<?php echo JHtml::_('date', $item->date, 'd F Y H:i'); ?>` This is regular joomla code. Thank you, Olivia
macais
17 Posts
macais posted this 08 February 2018

Hello!

Thanks, this works fine!

Hello! Thanks, this works fine!
Support Team
Support Team posted this 09 February 2018

You are welcome. Feel free to contact us in any other occasion.

Sincerely,
Hella

You are welcome. Feel free to contact us in any other occasion. Sincerely, Hella
souacz
60 Posts
souacz posted this 04 May 2021

Hi,

As alternative you can try to output the date manually using CMS Code control. For example:
&lt;?php echo jhtml::_(&#39;date&#39;, $item-?&gt;date, 'd F Y H:i'); ?>

This is regular joomla code.

Thank you,
Olivia

How can I put the code?

> Hi, > > As alternative you can try to output the date manually using CMS Code control. For example: > `&lt;?php echo jhtml::_(&#39;date&#39;, $item-?&gt;date, 'd F Y H:i'); ?>` > > This is regular joomla code. > > Thank you, > Olivia How can I put the code?
Support Team
Support Team posted this 07 May 2021

Hello,

Please open the theme in Themler and in the Insert tab select CMS Code control, add it to the page.
Then click Edit CMS Code on the ribbon in the CMS Code tab and put the code below in there.
I have noticed, the code was copied incorrectly, it should look like
<?php echo JHtml::_('date', $item->date, 'd F Y H:i'); ?>

Sincerely,
Nettie

Hello, Please open the theme in Themler and in the Insert tab select CMS Code control, add it to the page. Then click Edit CMS Code on the ribbon in the CMS Code tab and put the code below in there. I have noticed, the code was copied incorrectly, it should look like `<?php echo JHtml::_('date', $item->date, 'd F Y H:i'); ?>` Sincerely, Nettie
You must log in or register to leave comments