Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2016-06-30 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (403 votes). Check out past polls.