1. Add Data Time Picker control in MFC interface
2. Add the variables of the start time and the end time to the object function of the interface.
3. Associate the variables with the controls
4. Set the format of Time Picker as year-month-day hour: minute: second
5. Get the time set on the interface: