A RetroSearch Logo

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

Search Query:

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

Website Navigation


JavaScript Form - getValue Timepicker Method

// return value as a string in the 24-hour format
const val1 = timepicker.getItem("timepicker").getValue();
// -> "00:39"

// return value as an object in the 24-hour format
const val2 = timepicker.getItem("timepicker").getValue(true);
// -> {hour: 0, minute: 39}

// return value as a string in the 12-hour format
const val3 = timepicker.getItem("timepicker").getValue();
// -> "06:00AM"

// return value as an object in the 12-hour format
const val4 = timepicker.getItem("timepicker").getValue(true);
// -> {hour: 6, minute: 0, AM: true}

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