Skip to content

Kirby 3.7.5

Str::date()

Convert timestamp to date string according to locale settings

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

Parameters

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

Return type

string|int

Parent class

Kirby\Toolkit\Str