returns the current value of the DateRange
format | string | optional, a date format |
object | range object with 'start' and 'end' properties that represent the currently selected date range |
webix.ui({
view:"daterange",
id:"daterange1"
});
// setting a value
$$("daterange1").setValue({start:new Date(2016,9,30), end:new Date(2016,10,2)});
// getting a value
$$("daterange1").getValue();
// -> {start: Sun Oct 30 2016 00:00:00 GMT+0300 (Russia Standard Time),
// end: Wed Nov 02 2016 00:00:00 GMT+0300 (Russia Standard Time)}
$$("daterange1").getValue("%d %m %Y") -> {start: '30 10 2016', end: '02 11 2016'}
The returned range object contains two properties: