Skip to main content
A newer version of this page is available. .

ASPxClientCalendar.SetVisibleDate(date) Method

Sets the date that specifies the month and year to be displayed in the calendar.

Declaration

SetVisibleDate(
    date: Date
): void

Parameters

Name Type Description
date Date

The date that specifies calendar’s visible month and year.

Remarks

Use the SetVisibleDate method to specify the month and year that should be displayed within the calendar.

Example

This example illustrates how to use the SetVisibleDate method to specify the month and year that should be displayed within the calendar.

See also:

ASPxCalendar - How to select a date that is currently hidden

function btn_OnClick(s, e) {
    if (!ASPxClientEdit.ValidateEditorsInContainer(null))
        return;
    var year = cmbYear.GetValue();
    var month = cmbMonth.GetValue();
    var day = 10;
    var myDate = new Date(year, month, day);
    calendar.SetVisibleDate(myDate);
}
See Also