XP is just a number | |
PerlMonks |
Re: Yesterday Dateby toolic (Bishop) |
on Feb 04, 2008 at 19:11 UTC ( [id://666050]=note: print w/replies, xml ) | Need Help?? |
I do not have Date::Calc installed (so I can not verify this), but, looking at the documentation, it would seem that you could use Day_of_Week to determine if today is Monday or not. If it is Monday, then subtract 3 days, else subtract one day.
In Section
Seekers of Perl Wisdom
|
|