Windows Dev Center

TimePicker.clock property

Applies to Windows only

Gets or sets the type of clock to display (12HourClock or 24HourClock). It defaults to the user setting.

Syntax


<div data-win-control="WinJS.UI.TimePicker" data-win-options="{ clock : value}" />


var clock = timePicker.clock;
timePicker.clock = clock;

Property value

Type: String

The type of clock to display (12HourClock or 24HourClock).

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

WinJS.UI

Library

Ui.js

See also

TimePicker

 

 

Show:
© 2015 Microsoft