Modifier :ymd_dash
yyyy-mm-dd. Example: {Start Date:128:ymd_dash} gives 2026-03-19. On the test form, this field is {Start Date:128} (Date).
About
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 2.4 or later |
| In the picker | What to show, for Date fields |
How to use it
A machine-readable date
The yyyy-mm-dd form HTML and most systems expect.
Write
<time datetime="{Birthday:13:ymd_dash}">{Birthday:13}</time>Get
<time datetime="1979-04-27">04/27/1979</time>Examples
Output from the real plugin code, run on a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{Birthday:13:ymd_dash} | 1979-04-27 | 04/27/1979 |
Works on
Form fields: Date.
Left out
| Field kinds | Why |
|---|---|
| Date, after a custom format | Locked there. "Custom date format" replaces the value, so this would change nothing. Remove it first. |