I was wondering if anyone knew a way to have a date/time picker only allow the selection of months/years? Like January, 2010...etc and not the specific day of the week?

Kinda like the attached image.

Attachments date_time.jpg 22.33 KB
7 Years
Discussion Span
Last Post by zachattack05

One option is to set the Format property to Custom and in the CustomFormat property enter MMMM/yyyy, then change the ShowUpDown property to true. This will give you a date in the format of "July / 2010" with the ability to select the month or year and use the up/down arrows to the right of the date to cycle by month or year from the current selection showing in the picker.

Alternately you can still set the custom format for the displayed date, unfortunately I am not sure how to get the drop-down calendar to default to the month setting instead of date setting.

Hope this helps :) Please mark as solved if it resolves your issue.


This might be my best option. I would prefer the calendar drop to be months only, but in the absence of that, using the arrows might be the best option.

This topic has been dead for over six months. 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.