PHP 8.1.0 Released!

DateTimeImmutable::createFromFormat

date_create_immutable_from_format

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

DateTimeImmutable::createFromFormat -- date_create_immutable_from_formatDevuelve un nuevo objeto DateTimeImmutable formateado según el formato especificado

Descripción

Estilo orientado a objetos

public static DateTimeImmutable::createFromFormat(string $format, string $time, DateTimeZone $timezone = ?): DateTimeImmutable

Estilo por procedimientos

date_create_immutable_from_format(string $format, string $time, DateTimeZone $timezone = ?): DateTimeImmutable

Igual que DateTime::createFromFormat() excepto que trabaja con DateTimeImmutable.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top