Date Property

Applies to TestComplete 14.0, last modified on January 23, 2019

Specifies the component’s date value.

Declaration

componentObj.Date
Read-Write Property TDateTime
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TcxDateEdit

Description

Use the Date property to get or set the date value represented by the component. This property returns a TDateTime value whose integer part is the number of days that have passed since 12/30/1899. For example:

Date Value Meaning
0 12/30/1899
-45103 7/4/1776
38902 7/4/2006

The Date property is a wrapper for the EditValue property and as the EditValue of the TDateTime data type it can accept fractional values. In this case the component can display both date and time (This depends on the Properties.ShowTime property). Note that when you select a date in the calendar pop-up window, the time part of the component’s value can be preserved or truncated depending on the Properties.SaveTime property.

Property Value

A floating-point value whose integer part specifies the number of days elapsed since 12/30/1899.

Remarks

When the calendar edit is cleared, that is when the EditValue contains an empty value (Nothing in VBScript, null in JavaScript, JScript, C++Script and C#Script, None in Python, and nil in DelphiScript), the Date property returns -700000.

See Also

Working With Dates
aqDateTime Object
EditValue Property
ShowTime Property
SaveTime Property
TDateTime Type

Highlight search results