#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2013
    Posts
    1
    Rep Power
    0

    Date::Calc qw(:all)


    Can anyone assist with this function. I read my manpages & am failing at what I need to accomplish.

    basically i have a string "20131231"
    I need a perl to check this string, & if its beyond 30 days return a "Y".

    Would I need to strip out the year,month,day into their own varibles? to accomplish this?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    10
    Rep Power
    0
    Code:
    say  Delta_Days(Today(), qw/ 2013 12 31 /);

IMN logo majestic logo threadwatch logo seochat tools logo