Making $post['time'] only display date, not hour?

Started by themavesite, October 27, 2017, 02:42:19 AM

Previous topic - Next topic

themavesite

How do I make

$post['time']

Display only "Today" instead of "Today at 05:14 AM "
Same for "October 25, 2017" instead of "October 25, 2017, 03:15 "

Thank you!

$post(date) doesn't exist, and I can't seem to find documentation on all the possible $post requests
TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

Gwenwyfar

Have you seen you can customize the date format in the admin settings?
"It is impossible to communicate with one that does not wish to communicate"

themavesite

Quote from: Gwenwyfar on October 27, 2017, 10:36:51 AM
Have you seen you can customize the date format in the admin settings?
I need this on one specific page, don't want to change it everywhere
TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

Illori


Arantor

Might be worth explaining which page you want this on.

themavesite

TMS Forums
Since 2008 and still going strong! Join today! http://forums.themavesite.com/index.php

Advertisement: