[v2][Solved] How to get a dates range

Hello! I use calendar as object.
I can get the date by click.
I can get the date range as a string.

But, how to correctly access the calendar instance,
I want get the start and end dates of the range from object

app.calendar.get('.calendar_range').value[0]   //  start?
app.calendar.get('.calendar_range').value[1]   //  end?

Solved. I just used ‘app.data.range=self.calendarRange.value’ on ‘dayClick’ event. And get the object with array of two dates.

2 Likes