Using CDateTimeCtrl
The date and time picker control (CDateTimeCtrl) implements an intuitive and recognizable method of entering or selecting a specific date. The main interface of the control is similar in functionality to a combo box. However, if the user expands the control, a month calendar control appears (by default), allowing the user to specify a particular date. When a date is chosen, the month calendar control automatically disappears.
Note
To use both the CDateTimePicker
and CMonthCalCtrl
classes in your project, you must include AFXDTCTL.H, usually in your project's STDAFX.H file.
What do you want to know more about
Using Custom Format Strings in a Date and Time Picker Control
Processing Notification Messages in Date and Time Picker Controls
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for