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!