Class Calendar 1.0

Class Calendar takes a given month and year as parameters and it fills the multi-dimensional array, that represents the weeks and the week days, with the respective number of the days of the month. The array positions that represent days before and after the current month are filled with 0.

Class Calendar can also return the month name and its length in days, whether a year is a leap or not and the week day name for a specified day of the month.

Also, worth noting, the function valid_date will make sure that any month, day, and year are within valid parameters. For example, using the date 13/32/2005 by default is invalid. If you pass this date to valid_date, it would convert that date to 2/1/2006. This is important if accepting user input from a calendar.