http://www.perlmonks.org?node_id=993394


in reply to No: of weeks in a month

Welcome, I will guide you

The Perl Monks Guide to the Monastery

 [weeks in month] -> no results, uh-oh

 brain .oO( what is a week? what is a month? )

Hmm, a week is seven days

A month is 28 to 31 days

Hmm, days in month , divided by seven, equals weeks in month

 [day in month] -> day in month -> weeks in month -> Calculating latest 'Sunday' date on the first of the month, Determining the dayname for the last day of any given month, how can i find number of days in a given year and month

I am finished