Modifier: :ymd_dash
yyyy-mm-dd. Write it after a colon: {Birthday:12:ymd_dash}
About
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 2.4 or later |
| Works on | Date fields |
| In the picker | What to show |
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
Rendered by real Gravity Forms and GravityKit PHP against a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{Birthday:13:ymd_dash} | 1979-04-27 | 04/27/1979 |
Where the merge tag picker offers it
Form fields: Date.