Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 :)


Comment on Re: date

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2014-10-22 04:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls