DatetTimePicker

  • Thread starter Thread starter web1110
  • Start date Start date
W

web1110

Hi y'all,

When displaying a DateTimePicker control, opening the control provides a
calendar from which to select a date. How do I specify a time?

Thanx,
Bill
 
You might be use the DateTimePicker' "CustomFormat" property together with
"Format" pormaty.

eg.

DateTimePicker dtPicker = new DateTimePicker();
//Set the format type ans custom format string
dtPicker.Format = DateTimePickerFormat.Custom;
dtPicker.CustomFormat = "MM/dd/yy hh:mm:ss tt";

HTH
BaBu
 
Thank you,

I understand that. I didn't make myself clear.

Once I open the DataPicker and display the calendar, it seems that there
should be a way to set the time in addition to the date.

That such an capability isn't obvious just makes the control seem incomplete
or that I am missing something.

Thanx again,
Bill
 
Back
Top