getValue

returns the current value of the DateRange

object getValue();

Returns

objectrange object with 'start' and 'end' properties that represent the currently selected date range

Example

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)}

Details

The returned range object contains two properties:

  • start - {Date object} a Date object for the start date
  • end - {Date object} a Date object for the end date
See also
Back to top