getVisibleDate

gets visible date

Date getVisibleDate();
Datea Date object that represents the current visible date

Example

webix.ui({
    container:"box",
    view:"calendar",
    id:"calendar1"
});
 
$$("calendar1").getVisibleDate();

Details

The visible date takes its value according to this priority list:

  1. If some date is selected in the calendar - visible date == selected date
  2. If no date is selected, but the initial date is set - visible date == initial date
  3. If no date is selected, the initial date isn't set and the calendar displays the current month -
    visible date ==today's date
  4. If no date is selected, the initial date isn't set and the calendar doesn't display the current month -
    visible date == the first day of the displayable month
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.