Description

Similar to createFromImmutable(), but this method creates a date from any object that uses DateTimeInterface

Syntax

DateTime::createFromInterface(DateTimeInterface $other);
DateTimeImmutable::createFromInterface(DateTimeInterface $other);