Show: Delphi C++
Display Preferences

Vcl.ComCtrls.TDateTimePicker.DateFormat

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DateFormat: TDTDateFormat read FDateFormat write SetDateFormat default dfShort;

C++

__property TDTDateFormat DateFormat = {read=FDateFormat, write=SetDateFormat, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TDateTimePicker

Description

Specifies format in which the date is presented.

If DateFormat is set to dfShort, the date is formatted using the short date format specified in the Windows control panel. By default, it appears like this: 3/21/97.

If DateFormat is set to dfLong, the date is formatted using the long date format specified in the Windows control panel. By default, it appears like this: Friday, March 21, 1997. (Applies only when Kind is dtkDate.)

For custom date formats, set the Format property.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance