getValue

returns the current value of a DatePicker control

string|Date getValue(boolean asDate);

Parameters

asDatebooleandefines whether a date will be returned as a Date object

Returns

string|Datethe current value of the control

Example

var value = form.getItem("datepicker").getValue();
// -> "03/06/19"
 
var value = form.getItem("datepicker").getValue(true);
// -> Mon Jun 03 2019 00:00:00 GMT+0300

Back to top