# \#time-format

**URL:** https://community.cdata.com/tag/time-format/404.md

[Latest](https://community.cdata.com/latest.md) · [Categories](https://community.cdata.com/categories.md) · [Tags](https://community.cdata.com/tags.md)

---

## [How do I get Unix Epoch Time?](https://community.cdata.com/t/how-do-i-get-unix-epoch-time/626)

<div class="topic-metadata">

**Author:** [@russell-jerseypost](https://community.cdata.com/u/russell-jerseypost)\
**Replies:** 2\
**Last updated:** [February 13, 2024, 7:13pm UTC](https://community.cdata.com/t/how-do-i-get-unix-epoch-time/626 "2024-02-13T19:13:02Z")

</div>

In PHP I can use ‘U’ format. How do I do this in Arc Script? So far I’ve got \<arc:set attr=“expiry”\>\[utcnow() | dateadd(‘day’, 7) | todate(‘U’)\]\</arc:set\> But ‘U’ is not recognised, and I get Error: Formatter to…
