Modifier :year
Year only. Example: {Start Date:128:year} gives 2026. 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
Use just the year
Write
Class of {Birthday:13:year}Get
Class of 1979Examples
Output from the real plugin code, run on a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{Birthday:13:year} | 1979 | 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. |