ShowDate Property

Applies to TestComplete 14.10, last modified on June 5, 2019

Specifies whether the date is shown along with the time value.

Declaration

componentPropObj.ShowDate
Read-Write Property Boolean
componentPropObj     One of the objects listed in the Applies To section  

Applies To

This property applies to the following objects:

TcxTimeEditProperties

Description

The ShowDate property controls the visibility of date information in the component edit box. If this property is True, both the date and time portions of a value are displayed when the time editor does not have focus. When it is focused, only the time portion is displayed and can be edited. Otherwise, only time is displayed.

Property Value

True, if the date is displayed; False otherwise.

Remarks

The date is displayed if the date portion of EditValue differs from the “zero” date (December, 30, 1899). To assign both the date and time to EditValue, use the Now, SetDateTimeElements routines of the aqDateTime object or the StrToDateTime method of the aqConvert object. For example:

JavaScript, JScript

UserForms.Form1.cxTimeEdit1.EditValue = aqDateTime.SetDateTimeElements(2001, 10, 15, 9, 45, 0);

Python

UserForms.Form1.cxTimeEdit1.EditValue = aqDateTime.SetDateTimeElements(2001, 10, 15, 9, 45, 0)

VBScript

Set UserForms.Form1.cxTimeEdit1.EditValue = aqDateTime.SetDateTimeElements(2001, 10, 15, 9, 45, 0)

DelphiScript

UserForms.Form1.cxTimeEdit1.EditValue := aqDateTime.SetDateTimeElements(2001, 10, 15, 9, 45, 0);

C++Script, C#Script

UserForms["Form1"]["cxTimeEdit1"]["EditValue"] = aqDateTime["SetDateTimeElements"](2001, 10, 15, 9, 45, 0);

See Also

EditValue Property
Time Property

Highlight search results