in reply to Calculating latest 'Sunday' date on the first of the month

What is the best way to get a list of all Mondays until the end of the year?
  • Comment on Re: Calculating latest 'Sunday' date on the first of the month

Replies are listed 'Best First'.
Re^2: Calculating latest 'Sunday' date on the first of the month
by Anonymous Monk on Sep 07, 2010 at 13:36 UTC
    Date::Manip can do that easily. If you want all mondays from today to the end of the year, and $y contains the current year:
    @dates = ParseRecur('0:0:1*1:0:0:0','','today',"$y-12-31");