CDateTimeCtrl Class

Encapsulates the functionality of a date and time picker control.

class CDateTimeCtrl : public CWnd

Remarks

The date and time picker control (DTP control) provides a simple interface to exchange date and time information with a user. This interface contains fields, each of which displays a part of the date and time information stored in the control. The user can change the information stored in the control by changing the content of the string in a given field. The user can move from field to field using the mouse or the keyboard.

You can customize the date and time picker control by applying a variety of styles to the object when you create it. See Date and Time Picker Control Styles in the Windows SDK for more information about styles specific to the date and time picker control. You can set the display format of the DTP control using format styles. These format styles are described under "Format Styles" in the Windows SDK topic Date and Time Picker Control Styles.

The date and time picker control also uses notifications and callbacks, which are described in Using CDateTimeCtrl.

Requirements

Header: afxdtctl.h

See Also

Concepts

CMNCTRL1 Sample: Demonstrates Common Control MFC Classes, Part 1

CDateTimeCtrl Members

CWnd Class

Hierarchy Chart

CMonthCalCtrl Class