This class is meant to manipulate dates to prepare the presentation of calendars.
You can set the month and the year of the calendar and the class can return a bidimensional array that represents number of the month week in the in the rows and the number of the day of the week as the columns.
The class can also return an array of arrays that represent all the months of the year or the date of first day of the next and previous months.
With this information you can format the output the calendar of any month. The supplied example demonstrates how to output a month calendar with HTML. |