$monthName = mktime(0, 0, 0, definedMonth, 1, definedYear); //gets Month and Year Timestamp for Date()
$daysInMonth = date("t", $monthName);
With this in place, I don't have to come up with an algorithm to find out the number of days in a certain month. If PHP can do it, I'd be stupid not to use it ;)...
I will have to drop prototyping for a while and start coming up with a pseudocode to find the starting day of a month. As far as I know, PHP doesn't have function that can do it for me. I will have to come up with my own logic for this.
After the algorithm is finished, implementing it is going to be a piece of cake. The prototypes are well done enough to allow easy implementation of an offset, I just need to find out the offset itself and the Month-View Prototype will be complete.