XF 2.3 <xf:date format question

Anatoliy

Well-known member
I like how it displays for older dates - Aug 10, 2024. However for resent dates it displays as Today at 12:00 AM, Yesterday at 12:00 AM... Is there some way so dates would always display in Aug 10, 2024 format? (even today's and yesterday's)

I use this code
HTML:
<xf:date time="$note.post_date" />
 
Last edited:
I like how it displays for older dates - Aug 10, 2024. However for resent dates it displays as Today at 12:00 AM, Yesterday at 12:00 AM... Is there some way so dates would always display in Aug 10, 2024 format? (even today's and yesterday's)

I've been wanting to do that too, sometimes the date is a bit to long in that format

HTML:
{{ date($timestamp) }}


Where do you make that change?
 
Darn, I've been looking for a global solution.

Surprised there is not a way to have just a standard date in settings.

I don't need all the yesterday, today and time stamp stuff, it tends to cut off in some sections and a shorter standard date is just much cleaner.

I remember I used forum software back a number of years that had a setting like that.
 
Can't you do it under language? Edit say English and you have a tab for dates and times. Not in front of a XF to test it.
 
Yeah I tried those, it keeps things like Monday, or Yesterday, I'm just looking for the date,

Jul 27, 2025

So three starting letters of Month, Day, year
 
Back
Top Bottom