RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDateTimePicker.DateFormat Property

Specifies format in which the date is presented.

Pascal
property DateFormat: TDTDateFormat;
C++
__property TDTDateFormat DateFormat;

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!