Date/Time
PHP Manual

date_format

(PHP 5 >= 5.1.0)

date_format — Returns date formatted according to given format

说明

string date_format ( DateTime $object , string $format )
string DateTime::format ( string $format )

参数

object

DateTime object.

format

Format accepted by date().

返回值

Returns formatted date on success or FALSE on failure.

参见


Date/Time
PHP Manual