format_date

Text-related functions

Summary

format_date(mixed $date, string $format = FFF)

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

Usage

Examples

Project Versions

Table Of Contents

Previous topic

Text-related functions

Next topic

html_escape

This Page