Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Find 30 days from today's date

by ambrus (Abbot)
on Apr 18, 2014 at 11:30 UTC ( [id://1082744]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings; use strict;
    use Date::Manip::Date 6.30; 
    ...
    my $thirty_ago = $today->calc($today->new_delta("-30 days"));
    print $thirty_ago->printf("Thirty days ago from today is: %Y-%m-%d\n")
    +;
    __END__
    
  2. or download this
    Today is: 2014-04-18
    A month ago from today is: 2014-03-18
    Thirty days ago from today is: 2014-03-19
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-20 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found