Str::date()
Convert timestamp to date string according to locale settings
Str::date(?int $time = null, IntlDateFormatter|string|null $format = null, ?string $handler = null): string|int|false
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $time | int|null |
null |
|
| $format | IntlDateFormatter|string|null |
null |
|
| $handler | string|null |
null |
Custom date handler or nullfor the globally configured one |
Return type
string|int|false