RSS Feed/News Improve date() or <xf:date> for templates

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,807
Points
823

Reputation:

I suggest enhancing the date() template function to support PHP-style formatting, or modifying the <xf:date> conditional to include date and format attributes (while retaining time for where it's already used). This would allow it to recognize custom user field dates set in the format 2024-09-12, and format them as something like "September 12, 2024" or "Sep 12, 24", making them more consistent with other dates seen across XenForo

Referenced...

Read more

Continue reading...
 
Status
Not open for further replies.
Top