DateTimePicker with Month selector only

Is it possible to limit the DateTimePicker to select Month only


Answer this question

DateTimePicker with Month selector only

  • AleMin

    In that its better to develop a custom component. You can use list control or you can override the datetime picker paint method to draw as u want.

  • crisha

    use the following code:

    dateTimePicker1.Format = DateTimePickerFormat.Custom;

    dateTimePicker1.CustomFormat = "MMMM";

    dateTimePicker1.ShowUpDown = true;



  • JulianSerna

    This is actually what I am doing now. However, I just don't like the small Up/Down button as the UI is designed for a touch screen device.

  • 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";



  • DateTimePicker with Month selector only