Declaration¶
Source position: db.pas line 905
type
TDateTimeField = class(TField)
public
constructor Create;
property Value: TDateTime; {rw}
published
property DisplayFormat: string; {rw}
property EditMask;
end;
Inheritance¶
Description¶
TDateTimeField is the class used when a dataset must manage data of type datetime. (TField.DataType equals ftDateTime). It also serves as base class for the TDateField or TTimeField classes. It overrides some of the properties and methods of the TField class to be able to work with date/time fields.
It should never be necessary to create an instance of TDateTimeField manually, a field of this class will be instantiated automatically for each datetime field when a dataset is opened.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| DisplayFormat | published | Formatting string for textual representation of the field. |
| EditMask read only | published | Specify an edit mask for an edit control. |
| Value | public | Contents of the field as a TDateTime value. |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| Create | public | Create a new instance of a TDateTimeField class. |
See also¶
| Name | Description |
|---|---|
| TDataset | Base class for records-based data-access. |
| TField | Provide access to the contents of a single field in a record. |
| TDateField | Field class for date values. |
| TTimeField | Field class for time values. |