DatePicker with ShowUpDown set to true
Posted
by
mhar
on Stack Overflow
See other posts from Stack Overflow
or by mhar
Published on 2013-06-30T04:16:36Z
Indexed on
2013/06/30
4:21 UTC
Read the original article
Hit count: 115
I set the datepicker ShowUpDown to true. I notice that every time it reaches JANUARY of the following year it is throwing an error.
Year, Month, and Day parameters describe an un-representable DateTime.
reading on MSDN, it says that month should be between 1 and 12. So my guess is after the month of December, which is 12, when a user increase it again it will become 13, hence, throwing an error.
Is is possible to loop this? From December(12) to January(1) instead of increasing it to 13.
© Stack Overflow or respective owner