Software Development Network>> Windows Forms>> DateTimePicker with Month selector only
use the following code:
dateTimePicker1.Format =
dateTimePicker1.CustomFormat =
dateTimePicker1.ShowUpDown =
What I can see you will have to choose a day in a month, you can display only the month to the user. You can also use the resulting DateTime to extract only the year and month.
DateTimePicker with Month selector only
AleMin
crisha
use the following code:
dateTimePicker1.Format =
DateTimePickerFormat.Custom;dateTimePicker1.CustomFormat =
"MMMM";dateTimePicker1.ShowUpDown =
true;JulianSerna
Earths
What I can see you will have to choose a day in a month, you can display only the month to the user. You can also use the resulting DateTime to extract only the year and month.
dateTimePicker1.Format =
DateTimePickerFormat.Custom;dateTimePicker1.CustomFormat = "MMM yyyy";