Datetimepicker display format

brucelim80

Active member
Joined
Apr 20, 2006
Messages
35
Programming Experience
Beginner
hi

Does anyone know how to set the value of the datetimepicker to display time as value?
I had set the format to time but the value still reflect date and time.


Thank you for responding:confused:
 
check the properties ToLongTimeString and ToShortTimeString etc
VB.NET:
DateTimePicker1.Value.ToLongTimeString
DateTimePicker1.Value.ToShortTimeString
 
hi

Does anyone know how to set the value of the datetimepicker to display time as value?
I had set the format to time but the value still reflect date and time.


Thank you for responding:confused:

You want a datepicker to show the time as well?

DatePicker.CustomFormat = "dd MM yyyy hh:mm:ss"
DatePicker.Format = DatePickerFormat.Custom
 
Back
Top