How to fetch no. of days in acurrent month
How to fetch no. of days in acurrent month
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sumit JoshiPosted Aug 13, 2015, 8:19 AM
// daysInFeb gets 28 because the year 1998 was not a leap year.int daysInFeb = System.DateTime.DaysInMonth(1998, Feb);//daysInFebLeap gets 29 because the year 1996 was a leap year.int daysInFebLeap = System.DateTime.DaysInMonth(1996, Feb);Rajeesh MenothPosted Aug 13, 2015, 8:17 AM