in reply to How to find first day of the first week on the month?

What is the first week of a month?

See DateTime for doing date/time math.

Also, see Time::Local to get from a date to a timestamp, and localtime to get back to a date. It is often easiest to base your math on "days after the first of a month". Maybe your "first week" starts after the first sunday of the month?

  • Comment on Re: How to find first day of the first week on the month?