Dave Rolsky wrote: [...]
Make that:$month[ $date->month_0 ] vs. $date->month_name $date->month returns a 1-based numbers $date->month_0 a 0-based named $date->month_name returns a name based on the DateTime::Language module the $date object is holding onto.
While I like returning 1 based numbers by default, I'd like to suggest eliminating the "_" for the 0 based returns: $date->month0 instead of $date->month_0. Just preference... brad