Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get date 7 days from another date

Status
Not open for further replies.

jdbolt

Programmer
Aug 10, 2005
89
CA
Getting date 7 days from another date.

I am using

Code:
use Date::Calc

And I was wondering if there was a function to allow me to get the date in 7 days from another date (a string the user inputs input teh script)

I have checked the documentation and can't really find anything and I am a bit stuck :)

Thanks!
 
I don't have Date::Calc installed, but from the docs it looks like this might work:
Code:
use Date::Calc;
my ($newYear, $newMonth, $newDay) = Add_Delta_Days($oldYear, $oldMonth, $oldDay, 7);
 
great thanks for your reply, will let you know if this works for me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top