0

Hi!

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
2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by zachattack05
0

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.

0

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.