Yesterday.
| Product | GravityView |
|---|
| Requires | GravityView 2.30 or later |
|---|
| Needs an entry | No |
|---|
Modifiers
What the merge tag picker offers on this tag.
What to show
| Modifier | Description | Requires |
|---|
diff | Time difference from now. Renders "3 days ago" for past dates and "3 days from now" for future ones. | GravityView 2.30 or later |
no_tz_offset | Skip the timezone offset. Formats the stored value without shifting it into the site timezone. Beats the default branch, so it is a rendering choice rather than a flag. | GravityView 2.33 or later |
raw | Raw stored date. | GravityView 2.30 or later |
timestamp | Unix timestamp. Also switches the relative-date tags to UTC rather than site-local time. | GravityView 2.30 or later |
Change the output
| Modifier | Description | Requires |
|---|
format | Custom date format. A PHP date() format string. Attached with a colon and consumes the rest of the modifier string, so it must come last; escape a literal colon as \:. | GravityView 2.30 or later |
Other settings
| Modifier | Description | Requires |
|---|
time | Include the time. | GravityView 2.30 or later |
Examples
Rendered by real Gravity Forms and GravityKit PHP against a test entry.
| Merge tag | Output |
|---|
{yesterday} | January 14, 2026 |
With a modifier
| Merge tag | Output | Without the modifier |
|---|
{yesterday:raw} | 2026-01-14 09:00:00 | January 14, 2026 |
{yesterday:timestamp} | 1768363200 | January 14, 2026 |
{yesterday:diff} | 19 hours ago | January 14, 2026 |
{yesterday:time} | January 14, 2026 at 4:00 am | January 14, 2026 |
{yesterday:format:Y-m-d} | 2026-01-14 | January 14, 2026 |