I have this series of loops I use to fillin dates of a calendar. The first one sets teh days before teh firstDay blank. The second nunmbers 1 to number of days in the month and the last is for blank days at the end of the calendar.
I trace both dateTrack and daysInMonth[month] and for august its 31. But my loop stops at 29? wtf?
ok I figured it out. firstDay doesnt mean 1 cause it is a numerical representation of the day of teh week. In this case its 3 for Wednesday and 3 to 31 is 29.