Str::date()
Convert timestamp to date string according to locale settings
Str::date(int|null $time, IntlDateFormatter|string|null $format = null, 'date'|'intl'|'strftime'|null $handler = null): string|int|false
Parameters
Name | Type | Default | Description |
---|---|---|---|
$time | int ornull |
no default value | |
$format | IntlDateFormatter orstring ornull |
null
|
|
$handler | 'date' or'intl' or'strftime' ornull |
null
|
Custom date handler or null for the globally configured one |
Return types
string
orint
orfalse