×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Date Format - Layout - com_content - Settings

Date Format - Layout - com_content - Settings 10 years 9 months ago #24874

  • Peter
  • Peter's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
I'm struggling with getting the right date format on my comments page. When I dig into Date Format (under: Settings - com_content - Layout), I've tried several words, and syntaxes I found online, based on strftime(). They kind of worked, but totally displayed something else than I expected it to do.

I'm looking for some format like: Thursday 06 februari 2014 at 13:40:29. What syntax to use and fill in the field (and the syntax without the seconds displayed)?

Date Format - Layout - com_content - Settings 10 years 9 months ago #24909

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Peter,
sorry for that. Actually the label with the description is wrong. It is not the strftime format, but the date format. So you need this:
l d F Y

Regards,
Daniel

P.S. Btw - since you have a subscription. The fastest way to get a reply would be a ticket or the PRO section of the forum. We don't monitor the core version forums that often.

Date Format - Layout - com_content - Settings 10 years 7 months ago #25654

  • Peter
  • Peter's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Thanks! That works perfectly! Will use the PRO section the next time.

I'm only still missing the time format. l d F Y gives me for example: Thursday 19 April 2012. How do I get the time, like 18:23?

Date Format - Layout - com_content - Settings 10 years 7 months ago #25657

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Peter,
just look here: php.net/manual/de/function.date.php

You just need to add G:i to the l d F Y
  • Page:
  • 1
Time to create page: 0.140 seconds