Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: date

by zeidrik (Scribe)
on May 28, 2001 at 23:19 UTC ( #83778=note: print w/replies, xml ) Need Help??


in reply to Yesterday's or last month's date?

Definitely Date::Calc is the best choice...
You can find it on CPAN
1. Yesterday: Add_Delta_Days
($year, $month, $day) = Add_Delta_Days(Today(), -1);
2. What do You mean date of last month?
Check Days_in_Month($year, $month) and do a cycle for that :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83778]
help
Chatterbox?
and a soft breeze sighs...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2018-01-16 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (180 votes). Check out past polls.

    Notices?