Type | Description | |||
String | A string expression that defines the string format used to display the selected date, while the FormatDate property is UserDate |
Use the FormatUserDate property to display date and time as you need. The FormatUserDate property has effect only if the FormatDate property is UserDate. Use the Caption property to retrieve the caption being displayed in the control's label. Use the SelDate or Value property to specify the date being displayed in the control's label. The AllowSpin property indicates whether the control displays a spin control to allow user changes the selected field using up or down arrows. Use the AllowCheckBox property to simulate as the browsed date is available or disable.
The FormatUserDate property should be a combination of text and one or more of the followings indicators:
The following VB sample displays date and time like: "12/31/1971 12:12:00 PM"
With CalendarCombo1 .FormatDate = UserDate .FormatUserDate = "%m/%d/%y %hh:%nn:%ss %a" End With
The following VB sample displays date like: "1971/12/31"
With CalendarCombo1 .FormatDate = UserDate .FormatUserDate = "%y/%m/%d" End With