Technical Docs

Search Documentation

Function: tribe_format_date

Formatted Date

Located at src/functions/template-tags/date.php (Line: 31)

Description

Returns formatted date

Parameters summary

(string) $date String representing the datetime, assumed to be UTC (relevant if timezone conversion is used)
(bool) $display_time If true shows date and time, if false only shows date
(string) $date_format Allows date and time formating using standard php syntax (<a href="http://php.net/manual/en/function.date.php">http://php.net/manual/en/function.date.php</a>)

Return value summary

(string)

Examples

string tribe_format_date ( string $date, bool $display_time = true, string $date_format = ’’ )