DateTime
PHP Manual

DateTime::createFromFormat

(PHP 5 >= 5.3.0)

DateTime::createFromFormatReturns new DateTime object formatted according to the specified format

Описание

public static DateTime DateTime::createFromFormat ( string $format , string $time [, DateTimeZone $timezone ] )

Returns new DateTime object formatted according to the specified format.

Список параметров

format

Format accepted by date().

time

String represeting the time.

timezone

Time zone.

Возвращаемые значения

Returns new DateTime instance.


DateTime
PHP Manual