Skip to main content

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

ProductGravity Forms
RequiresGravity Forms 2.4 or later
In the pickerWhat 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 tagOutputWithout the modifier
{Birthday:13:ymd_dash}1979-04-2704/27/1979

Works on

Form fields: Date.

Left out

Field kindsWhy
Date, after a custom formatLocked there. "Custom date format" replaces the value, so this would change nothing. Remove it first.