Modifier: :timestamp
:timestamp means different things depending on the merge tag or the kind of field:
- Unix timestamp on {date_created}, {date_updated}, {payment_date}, {today}
- Convert to a Unix timestamp on Date, Time fields
- Unix timestamp on {now}, {yesterday}, {tomorrow}
Unix timestamp
On {date_created}, {date_updated}, {payment_date}, {today}.
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 1.9 or later |
| Works on | {date_created}, {date_updated}, {payment_date}, {today} |
| In the picker | What to show |
Examples
Rendered by real Gravity Forms and GravityKit PHP against a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{date_created:timestamp} | 1768438800 | January 15, 2026 |
{date_updated:timestamp} | 1768439400 | January 15, 2026 |
{payment_date:timestamp} | 1768439100 | January 15, 2026 |
{today:timestamp} | 1768467600 | January 15, 2026 |
{date_created:timestamp}Rendered against an entry nine days older, where the result differs. | 1767672000 | January 15, 2026 |
{date_updated:timestamp}Rendered against an entry nine days older, where the result differs. | 1767672600 | January 15, 2026 |
{payment_date:timestamp}Rendered against an entry nine days older, where the result differs. | 1767672300 | January 15, 2026 |
Where the merge tag picker offers it
Merge tags: {date_created} · {date_updated} · {payment_date} · {today}.
Convert to a Unix timestamp
On Date, Time fields.
Runs the value through strtotime(). Yields -1 when it is not a parseable date.
| Product | GravityView |
|---|---|
| Requires | GravityView 1.17 or later |
| Works on | Date, Time fields |
| In the picker | Change the output |
How to use it
Give a date to a script as a number
Seconds since January 1, 1970: easy to sort or compare in JavaScript.
Write
<time data-timestamp="{Birthday:13:timestamp}">{Birthday:13}</time>Get
<time data-timestamp="294019200">04/27/1979</time>Examples
Rendered by real Gravity Forms and GravityKit PHP against a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{Birthday:13:timestamp} | 294019200 | 04/27/1979 |
Where the merge tag picker offers it
Form fields: Date · Date, after a custom format · Time.
Unix timestamp
On {now}, {yesterday}, {tomorrow}.
Also switches the relative-date tags to UTC rather than site-local time.
| Product | GravityView |
|---|---|
| Requires | GravityView 2.30 or later |
| Works on | {now}, {yesterday}, {tomorrow} |
| In the picker | What to show |
Examples
Rendered by real Gravity Forms and GravityKit PHP against a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{now:timestamp} | 1768449600 | January 15, 2026 |
{yesterday:timestamp} | 1768363200 | January 14, 2026 |
{tomorrow:timestamp} | 1768536000 | January 16, 2026 |
Where the merge tag picker offers it
Merge tags: {now} · {yesterday} · {tomorrow}.