wDate Property (Calendar Controls)

Applies to TestComplete 15.47, last modified on January 20, 2023
This property is not supported in web tests (including cross-platform web tests) that use XPath expressions and CSS selectors to locate web elements. This property can be only used in tests that locate web objects by using internal identification properties provided by TestComplete.

Description

The wDate property specifies the date that is currently selected in the control.

Declaration

TestObj.wDate

Read-Write Property Date/Time
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following objects:

View Mode

This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Property Value

The date that is currently selected in the control.

Remarks

The property works differently for different objects:

  • Infragistics UltraWinScheduleControl

    If you attempt to set a date earlier than wMinDate or later than wMaxDate, wDate will not change and an error will be posted to the test log.

  • Qt CalendarWidget, Win32MonthCalendar

    If you set a date that is earlier than wMinDate or later than wMaxDate, wDate will not change.

  • Win32 MonthCalendar

    If the month calendar supports multi-selection, wDate specifies the earliest date in the selected range.

    If you set the wDate property to a value greater than wEndDate, the latter will be assigned that value as well. To avoid confusion when selecting a range of dates in a multi-selection month calendar control, use the SetSelection method.

  • WPF Toolkit Calendar

    It is possible to set a date earlier than wMinDate or later than wMaxDate. At that, wMinDate (wMaxDate) will be set to the same value as wDate.

Example

To view an example that demonstrates how to use the wDate property, see Getting MonthCalendar Date in Desktop Windows Applications.

See Also

wMinDate Property (Calendar Controls)
wMaxDate Property (Calendar Controls)

Highlight search results