How to show only year using DayTimePicker

  • Thread starter Thread starter Sandeep Singh
  • Start date Start date
S

Sandeep Singh

Hi Everyone,

How to show only year on UI using VS DayTimePicker in C#.

Looking forward for your response.

Thanks
Sandy
 
Hi,
Why don't you use a NumericUpDown control? since you are only displaying one
number it would be well suitable

Or you could use a custom format for your DateTimePicker and use only yyyy
to display the year, but then, when you expand the calendar, you'd still
have every months in a year...

I hope it helps

ThunderMusic
 
Back
Top