Need to find the number of days in a month using month number
Eg:month input:01
From the input we get to know the month is January so output should be 31
Month input :02
the input we get to know the month is February so output should be 28
Need to find the number of days in a month using month number
Eg:month input:01
From the input we get to know the month is January so output should be 31
Month input :02
the input we get to know the month is February so output should be 28
Hi,
We need to input not only month but also year because of leap year.
Can you try DateTime.DaysInMonth method as the following?
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.