Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Adding Days To YYYYMMDD Date Format

by Kenosis (Priest)
on May 17, 2012 at 02:43 UTC ( [id://970967]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    use Date::Calc qw(Add_Delta_Days);
    ...
        sprintf '%d%02d%02d',
          Add_Delta_Days( $_[0] =~ /(\d{4})(\d{2})(\d{2})/, $_[1] );
    }
    
  2. or download this
    20120609
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-25 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found