[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'DB' (#fcl)

# TDateField

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Field class for date values

## Declaration

Source position: db.pas line 758

`type TDateField = class(TDateTimeField)`
`public`
`constructor Create(); override;` |  | Create a new instance of a TDateField class.
`end;`

## Inheritance

`TDateField` |  | Field class for date values
`TDateTimeField` |  | Field class for date/time/Datetime values
`TField` |  | Provide access to the contents of a single field in a record
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent,IFPObserved`
`TObject`

## Description

TDateField is the class used when a dataset must manage data of type date. (TField.DataType equals ftDate). It initializes some of the properties of the TField class to be able to work with date fields.

It should never be necessary to create an instance of TDateField manually, a field of this class will be instantiated automatically for each date field when a dataset is opened.

## See also

TDataset |  | Base class for records-based data-access
TField |  | Provide access to the contents of a single field in a record
TDateTimeField |  | Field class for date/time/Datetime values
TTimeField |  | Field class for time values