$field->toDate()
Converts the field value to a timestamp or a formatted date
$field->toDate(IntlDateFormatter|string|null $format = null, string|null $fallback = null): string|int|null
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $format | IntlDateFormatterorstringornull |
null
|
PHP date formatting string |
| $fallback | stringornull |
null
|
Fallback string for strtotime |
Return types
stringorintornull