PHP.nl

date_create_immutable

date_create_immutable

create a new DateTimeImmutable object

 **date_create_immutable** string $datetime  $timezone

This is the procedural version of . DateTimeImmutable::__construct

Unlike the constructor, it will return false instead of an exception if the passed in string is invalid. DateTimeImmutable``datetime

See . DateTimeImmutable::__construct

Returns a new DateTimeImmutable instance return.falseforfailure

DateTimeImmutable::createFromFormat