Skip to content

Kirby 3.9.8

Str::date()

Convert timestamp to date string according to locale settings

Str::date(?int $time = null, IntlDateFormatter|string|null $format = null, string $handler = 'date'): string|int|false

Parameters

Name Type Default Description
$time int|null null
$format IntlDateFormatter|string|null null
$handler string 'date' date, intl or strftime

Return type

string|int|false

Parent class

Kirby\Toolkit\Str