There are two fields that deal with this: 1) DateTimePicker.Format. Enum with 4 settings a) Long - A long date form ( 5 January, 2004) b) Short - A short date form (1/5/2004) c) Time - A time format d) Custom
If you choose Custom, then you need to set: 2) DateTimePicker.CustomFormat
I recommend reading the documentation on the CustomFormat field as it is very flexible in terms of the ways that date and/or time can show up in the date time picker.
Time Selection from Datetime picker control
Jonas Nordlund
1) DateTimePicker.Format. Enum with 4 settings
a) Long - A long date form ( 5 January, 2004)
b) Short - A short date form (1/5/2004)
c) Time - A time format
d) Custom
If you choose Custom, then you need to set:
2) DateTimePicker.CustomFormat
I recommend reading the documentation on the CustomFormat field as it is very flexible in terms of the ways that date and/or time can show up in the date time picker.
Garrett - MSFT
Pradnya - MSFT
From the datetime picker control-
Can I restrict the year selection. User can select only
previous year of the current year
current year and
Next year of the current year
and time hours from 0 to 24