Skip to main content

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.

ProductGravity Forms
RequiresGravity Forms 3.1.1.2 or later
In the pickerWhat 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 tagOutputWithout the modifier
{Appointment:26:hour}909:05 am

Works on

Form fields: Time.