Technical Docs

Search Documentation

Function: tribe_format_date

Formatted Date

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


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=""></a>)

Return value summary



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