property Calendar.Date as Date
Retrieves or sets the browsed date.

 TypeDescription 
   Date A DATE expression that indicates the browsed date.   

Ensures that the date is visible. Use the SelDate property to select a date. When the browsed date is changed the control fires the  DateChanged event. By default, the Date property points to the current date. Use the VB Date function in order to get the current date. use the DoDate property to build a DATE expression given year, month and day. The following sample shows how to browse the month "January 2000":

Calendar1.Date = Calendar1.DoDate(2000, 1, 1)

Send comments on this topic.
© 1999-2006 Exontrol Inc, Software. All rights reserved.