Freelance PHP programmer India | Freelance web developer india | Web development India | web developer CV india | Compiling PHP and Apache 2 from source on Linux
DateTime
PHP Manual

DateTime::createFromFormat

(No version information available, might be only in CVS)

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

Description

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

Returns new DateTime object formatted according to the specified format.

Parameters

format

Format accepted by date().

time

String represeting the time.

timezone

Time zone.

Return Values

Returns new DateTime instance.


DateTime
PHP Manual