|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: How to find the last date of the previous month?by Anonymous Monk |
| on Oct 30, 2012 at 10:44 UTC ( #1001483=note: print w/ replies, xml ) | Need Help?? |
|
Steps: 1. Find the epoch at 00.00 hrs for Date 1 of current month, current year. 2. Subtract 1 from that to reach previous day and convert that epoch again into date. 3. Grab the date and/or month value from it.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||