Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions



Formats a MySQL ISO date

Always use the 'wordy' style from now on as this works better internationally.

@var string $date ISO format date which can be a BCE date (ie. with negative year -yyyy)
@var boolean $time When TRUE and full date is present then append the hh:mm time part if present
@var boolean $wordy When TRUE return month name, otherwise return month number
@var boolean $offset_tz Set to TRUE to offset based on time zone, FALSE otherwise


$time false
$wordy true
$offset_tz false


string Returns an empty string if date not set/invalid

This article was last updated 18th May 2024 21:35 Europe/London time based on the source file dated 17th May 2024 09:00 Europe/London time.