Skip to content

Kirby 6.0.1

$date->formatWithHandler()

Formats the datetime value with a custom handler or with the globally configured one

$date->formatWithHandler(IntlDateFormatter|string|null $format = null, 'date'|'intl'|'strftime'|null $handler = null): int|string|false

Parameters

Name Type Default Description
$format IntlDateFormatterorstringornull null
$handler 'date'or'intl'or'strftime'ornull null Date handler, null for the configured one

Return types

intorstringorfalse

Parent class

Kirby\Toolkit\Date