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

nicedate()

Description

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

Parameters

ColumnTypeDefaultDescription
$date
$time false
$wordy true
$offset_tz false

Return

string Returns an empty string if date not set/invalid

This article was last updated 19th March 2024 05:05 Europe/London time based on the source file dated 11th March 2024 11:40 Europe/London time.