$field->toTimestamp()
Converts the field value to a Unix timestamp
$field->toTimestamp(): int|false
Return types
intorfalse
Examples
<?= $page->createdAt()->toTimestamp() ?>
Converts the field value to a Unix timestamp
$field->toTimestamp(): int|false
intorfalse
<?= $page->createdAt()->toTimestamp() ?>