A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/timepicker/api/timepicker_value_config/ below:

JavaScript Timepicker - value Config

Optional. The time value to be set on initialization of the timepicker


const timepicker = new dhx.Timepicker("timepicker_container", {
value: new Date()
});


const timepicker = new dhx.Timepicker("timepicker_container", {
value: 1232151545
});


const timepicker = new dhx.Timepicker("timepicker_container", {
value: "22:30"
});


const timepicker = new dhx.Timepicker("timepicker_container", {
value: [6,20,"AM"]
});


const timepicker = new dhx.Timepicker("timepicker_container", {
value: {hour: 10, minute: 50, AM: true}
});

Related sample: Timepicker. Initialization with button

1. The value of timepicker set as an array should have the following elements:

2. The value set as an object:

3. The date set as a number is the number of milliseconds since January 1, 1970, 00:00:00 UTC returned by the getTime() method of the Date object.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4