Titanium 2.X

Titanium.UI.Picker.format24

Titanium.UI.Picker
: Boolean
Determines whether the Time pickers display in 24-hour or 12-hour clock format. ...

Determines whether the Time pickers display in 24-hour or 12-hour clock format.

Applicable to Titanium.UI.PICKER_TYPE_TIME and Titanium.UI.PICKER_TYPE_DATE_AND_TIME picker types.

When this property is enabled, a time picker is displayed with hours 0 through 23, or with hours 1 through 12 and am/pm controls otherwise.

For backward compatibility, the default value of this property depends on the style of picker in use.

For a spinner picker (when useSpinner is true), this defaults to true (24-hour format.)
For a native picker (when useSpinner is either un-set or false), this defaults to false (12-hour format.)

The value of this property may be modified even after a picker is rendered and the UI will be updated accordingly.

Default: true (spinner enabled), false (otherwise)

  • 0.8