Data.DB.TDateTimeField

From RAD Studio API Documentation
Jump to: navigation, search

Data.DB.TFieldSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTDateTimeField

Delphi

TDateTimeField = class(TField)

C++

class PASCALIMPLEMENTATION TDateTimeField : public TField

Properties

Type Visibility Source Unit Parent
class public
Data.DB.pas
Data.DB.hpp
Data.DB Data.DB

Description

TDateTimeField represents a date-time field in a dataset.

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.

See Also

Code Examples