# Time Picker Control (INFLD)
> [HTML Version](timepickercontrol(infld).htm)
A time picker is similar to a [Date Picker Control](datepickercontrol(infld).htm.md) except for time rather than dates. (Use INFLD _type_ **t** or **||t**.) As with the date picker, the editor selects one sub-field at a time for editing (hour, minute, second) and you can edit it either by typing or by clicking on the Up/Down Arrows.
(./images/ashref_img127.png).
The format used by the control for editing and display is based on the localization settings for the workstation, but the format in which the field is returned is determined by the _type_ code and _xmax_ values. With _type_ ** t **, the time is returned in military (24 hour) format. With _type_ **||t**, the time is returned in 12 hour format with AM/PM appended. In both cases, setting _xmax_ to 5 will eliminate the seconds from the returned time string. (Otherwise 8 is the normal _xmax_ value.)
**Notes**
The time picker control bases its format on MAXCHARS rather than _xmax_, allowing you to use _xmax_ to set the physical display width of the field. In this case you may want to use _type_ **||\]** to defeat the automatic widening of the field to accommodate the extra formatting features of the time picker. This behavior matches the date picker and other field types as well.
If _type _**O** (optional) or XMIN=0, the time field will have a check box allowing you to select whether the field is to be valid or not.