Skip to main content

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.

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

Where the merge tag picker offers it

Form fields: Time.