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. ............. http://blog.joggee.com/?p=67