The DateTimePicker control (see output of Fig. 15.11) is similar to the
MonthCalendar control but displays the calendar when a down arrow is selected. The
DateTimePicker can be used to retrieve date and time information from the user. A
DateTimePicker’s Value property stores a
DateTime object, which always contains both date and time information. You can retrieve the date information from the
DateTime object by using property Date, and you can retrieve only the time information by using the TimeOfDay property.
DateTimePicker is also more customizable than a
MonthCalendar control—more properties are provided to edit the look and feel of the drop-down calendar. Property Format specifies the user’s selection options ...