search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Navigator: Get first and last date that is displayed

Asked by Thomas
2 years ago.

Is there an easy way to get the first and last displayed date of the navigator (it may be not in the current month).

In case of the current month: the first displayed date is 30th of July and the last is the 9th of September (see attachment).

Best regards,

Answer posted by Dan Letecky [DayPilot]
2 years ago.

You can use visibleStart() and visibleEnd() methods:

Just note that both methods return an exact time point. That's no surprise for visibleStart() but you need to consider that when calling visibleEnd(). Example: If the last visible day is September 9, 2018, visibleEnd() will return "2018-09-10T00:00:00".

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.