# $field->toTimestamp()

Converts the field value to a Unix timestamp

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/methods.php#L296>

****

```php
$field->toTimestamp(): int|false
```

## Return types

`int` or `false`

This method modifies the existing `$field` object it is applied to and returns it again.


## Examples

```php
<?= $page->createdAt()->toTimestamp() ?>
```