ASP.NET – How to get Days of the month.

Posted by Joggee | ASp.NET 2005 | Wednesday 26 September 2007 8:37 pm

Here is a single line code , help you to get the number of days in a particular month.

if you wanted to get for the complete years , then you need to put this code in a loop and changed the year and month numbers. 

Date.DaysInMonth(Now.Year, Now.Month)

1 Comment »

  1. Comment by darshan — February 1, 2010 @ 1:14 pm

    nice code………..

RSS feed for comments on this post. TrackBack URI

Leave a comment