PHP est DateTime

#Object oriented style

public DateTime::format(string $format): string
public DateTimeImmutable::format(string $format): string
public DateTimeInterface::format(string $format): string
  
#Procedural style

#date_format(DateTimeInterface $object, string $format): string
#Returns date formatted according to given format.
Xabos