0

Is there any way to format the datetimepicker so that it only shows hourly intervals? I already put it so it only shows time... And when I try dtmPicker.CustomFormat = "HH" it doesnt work. I want the user to only be able to pick from hourly intervals without having to load them into a combobox individually.

3
Contributors
3
Replies
29
Views
2 Years
Discussion Span
Last Post by Nandomo
2

You have to set first datetimepicker's format property to 'Custom' like this:

dtmPicker.Format = DateTimePickerFormat.Custom
dtmPicker.CustomFormat = "HH"

HTH

-6

Agreed with Teme64. You can try it.

Votes + Comments
Try posting something original instead of trying to get points for someone else's solution.
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.