Skip to content

SelectedDate - cMonthCalendar

Returns the selected date from a single select calendar

Type: Function
Return Data Type: Date

Syntax

Function SelectedDate Returns Date

Call Example

Get SelectedDate to DateVariable

Description

SelectedDate returns the selected date of the calendar when used for single selection (pbMultiSelect is False). If the calendar object is paged, it will return the selected date.

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

Use SelectedDateRange and SetSelectedDateRange when working with multi-select calendars.