RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDateTimeField Class

TDateTimeField represents a date-time field in a dataset.

Pascal
TDateTimeField = class(TField);
C++
class TDateTimeField : public TField;

DB

TDateTimeField encapsulates the fundamental behavior common to Date-time fields. Date-time fields contain combined date and time information, sometimes called timestamps. TDateTimeField introduces new properties to convert between date-time values and other data types, and to format the value of a date-time field for display.

Note: Date-time values accessed through dbExpress use TSQLTimeStampField instead of TDateTimeField
If you use the Fields editor at design time to create a persistent field component for the date-time field, you can access it by name at runtime. When using dynamic field components, you can access the TDateTimeField instance using the dataset's Fields property or FieldByName method. 

 

TTimeField 

TDateField 

TSQLTimeStampField 

TDataSet 

TDataSet 

TDataSet 

TField 

Using Default Formatting for Numeric 

Converting Field Values 

Controlling and Masking User Input

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!