in reply to How do i get "the last day of last month"?

Date::Manip might be exactly what you are looking for.

Leonid Mamtchenkov

  • Comment on Re: How do i get "the last day of last month"?

Replies are listed 'Best First'.
•Re: Re: How do i get "the last day of last month"?
by merlyn (Sage) on Apr 28, 2003 at 03:15 UTC

      Define "simpler" :)

      perl -MDate::Manip -e"print UnixDate( ParseDate( 'last day in' . UnixD +ate( ParseDate('last month'),'%B') ), '%Y/%m/%d' )"

      Examine what is said, not who speaks.
      1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
      2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
      3) Any sufficiently advanced technology is indistinguishable from magic.
      Arthur C. Clarke.