Skip to content

DateTime::createFromFormat() does not accept DateTime #2071

@ProceduralMan

Description

@ProceduralMan

From manual page: https://php.net/datetime.createfromformat


Manual says date_create_from_format(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false gets a DateTime object as its first argument

But the primitive clearly show a $format string as it 's first one...

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDocumentation contains incorrect information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions