format_date
— Format a date for output according to the current locale.
Summary
- format_date($date, $format = Zend_Date::DATE_MEDIUM)
Format a date for output according to the current locale.
- Parameters:
$date (
mixed
) – Date to format. If an integer, the date is intepreted as a Unix timestamp. If a string, the date is interpreted as an ISO 8601 date.$format (
string
) – Format to apply. See Zend_Date for possible formats. The default format is the current locale’s “medium” format.
- Returns:
string