Modifier :hour
Hour only. Example: {Pickup Time:129:hour} gives 2. On the test form, this field is {Pickup Time:129} (Time).
About
No leading zero (9, not 09). Overrides minute and ampm.
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 3.1.1.2 or later |
| In the picker | What to show, for Time fields |
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
Output from the real plugin code, run on a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{Appointment:26:hour} | 9 | 09:05 am |
Works on
Form fields: Time.