Formatting for page date?

Post Reply
kr428
Sr. Bludit
Posts: 31
Joined: Thu Jan 05, 2023 9:07 pm
Has thanked: 10 times
Been thanked: 2 times

Hi alls;
in the themes, I usually see something like ...

echo $page->date()

.. for rendering the page date. However, on my system this is always just a date. Where can I change this setting to also include hours and minutes (and maybe re-arrange the order of fields too)?
Thanks and best regards,
Kristian
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

kr428 wrote: Fri Mar 17, 2023 7:00 am Where can I change this setting to also include hours and minutes (and maybe re-arrange the order of fields too)?
You can set this at "Settings" > "General" > "Language".

For date formats please see:

https://www.php.net/manual/en/datetime.formats.date.php

For time formats:

https://www.php.net/manual/en/datetime.formats.time.php
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
kr428
Sr. Bludit
Posts: 31
Joined: Thu Jan 05, 2023 9:07 pm
Has thanked: 10 times
Been thanked: 2 times

Cool, thanks. That does it. 🙂
Post Reply