how can datetimepicker accept hour as well

57

how can datetimepicker accept hour as well -

Set the Format to Custom and then specify the format:

dateTimePicker1.Format = DateTimePickerFormat.Custom;
dateTimePicker1.CustomFormat = "MM/dd/yyyy hh:mm:ss"; 

Comments

Submit
0 Comments