Vcl.ComCtrls.TDateTimePicker
Delphi
TDateTimePicker = class(TCommonCalendar)
C++
class PASCALIMPLEMENTATION TDateTimePicker : public TCommonCalendar
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | Vcl.ComCtrls |
Description
TDateTimePicker displays a list box for entering dates or times.
TDateTimePicker is a visual component designed specifically for entering dates or times. In dmComboBox date mode, it resembles a list box or combo box, except that the drop-down list is replaced with a calendar illustration; users can select a date from the calendar. Dates or times can also be selected by scrolling with Up and Down arrows and by typing.
Date-time picker ignores the BiDiMode setting for right-to-left reading, displaying dates according to the system locale.
TDateTimePicker formats date and time values according to the date and time settings in the Regional Settings of the Control panel on the user's system. Because TDateTimePicker is a wrapper for a Windows control, these formats can't be changed by changing the formatting variables in the SysUtils unit. However, you can use the Windows API call DateTime_SetFormat to programmatically specify these settings.
See Also