TDateTime Type

Applies to TestComplete 14.93, last modified on September 21, 2021

The TDateTime data type is used to store date-and-time information. Actually, it is a floating-point data type that is interpreted in a special way.

The integer part of the TDateTime value is called “date portion”, it denotes the number of days that have passed since 12/30/1899. The fractional part of the value is called “time portion”, it denotes a part of a 24 hour day that has elapsed.

Below are several examples of TDateTime values and their descriptions:

Value Description
0.0 12/30/1899 12:00 AM
-45103.0 7/4/1776 12:00 AM
38902.0 7/4/2006 12:00 AM
36526.125 1/1/2000 3:00 AM
36519.5 12/25/1999 12:00 PM
38214.770833333333333 8/15/2004 6:30 PM
-148732.875 10/12/1492 9:00 PM

There are no TDateTime value between 0 and -1.

See Also

Working With Dates
Working With Time
aqDateTime Object
TcxDateEdit Object
TcxTimeEdit Object
TcxDateEdit.Date
TcxTimeEdit.Time

Highlight search results