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 | intornull |
no default value | |
| $format | IntlDateFormatterorstringornull |
null
|
|
| $handler | 'date'or'intl'or'strftime'ornull |
null
|
Custom date handler or nullfor the globally configured one |
Return types
stringorintorfalse