Modifier: :hour
Hour only. Write it after a colon: {Appointment:26:hour}
About
The hour as a number with no leading zero (9, not 09). Beats minute and ampm.
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 3.1.1.2 or later |
| Works on | Time fields |
| In the picker | What to show |
How to use it
Write a time your own way
Put the parts of a Time field in any order.
Write
Your appointment starts at {Appointment:26:hour}:{Appointment:26:minute} {Appointment:26:ampm}.Get
Your appointment starts at 9:05 am.Examples
Rendered by real Gravity Forms and GravityKit PHP against a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{Appointment:26:hour} | 9 | 09:05 am |
Where the merge tag picker offers it
Form fields: Time.