Take the 2-minute tour ×

I'm using the Datepicker that comes with visual studio 2010 but I can't find an option that lets me select only years, or only months of a given year.

(I see the wpf toolkit calendar supports this, but I'm wondering if maybe the one that comes with visual studio does as well?)

share|improve this question
Then how come you can't just do selectedDate.Month or something to that affect..?? –  DJ KRAZE Jan 6 '12 at 20:49

2 Answers 2

Duh, I should've just used the Calendar control with a popup. (Calendar supports DisplayMode)

share|improve this answer

will something like this work if you coded it..???

DateTime selectedDate = dateTimePicker1.Value;
int intMonth = DateTime.Month(selectedDate.Month);
share|improve this answer

Your Answer


