Str::date()
Convert timestamp to date string according to locale settings
Parameters
Name | Type | Default | Description |
---|---|---|---|
$time | int |
null |
|
$format | string |IntlDateFormatter |null |
null |
|
$handler | string |
'date' |
date, intl or strftime |
Return type
string
|int