Skip to content

SelectedDateRange - cMonthCalendar

Returns the selected date range from a multi select calendar

Type: Function
Return Data Type: Date[]

Syntax

Function SelectedDateRange Returns Date[]

Call Example

Get SelectedDateRange to Date[]Variable

Description

SelectedDateRange returns the selected date range of the calendar when used for date range selection (pbMultiSelect is True). If the calendar object is paged, it will return the selected date range. The data is returned as a two item array, with the starting date in starting date in item 0 and the ending date in item 1.

If the calendar is not paged, it returns the most recent selection, which may be the last date selected or the date set by SetSelectedDateRange.

Use SelectedDate and SetSelectedDate when working with single-select calendars.