MonthCalendar and SWTDateTime.
Selects a date and time.
This functionality is supported only if you are using the Open Agent.
Select (selectedDate)
Variable | Description |
---|---|
selectedDate | The date and time to select. DATETIME. |
For the SWTDateTime class, if an invalid property value is set in the Date control, then an E_INVALID_PARAMETER exception is thrown.
This is a typical example using the MonthCalendar class:
MonthCalendar1.Select("2008-03-06")
SWTControls.PageList1.Control22.DateTimeControls.SWTDateTime1.Select("YYYY-MM-DD")
SWTControls.PageList1.Control22.DateTimeControls.SWTDateTime2.Select("YYYY-MM-DD")
SWTControls.PageList1.Control22.DateTimeControls.SWTDateTime3.Select("YYYY-MM-DD hh:mm:ss.000")