View Single Post
  #2 (permalink)  
Old March 5th, 2007, 05:33 PM
ciderpunx ciderpunx is offline
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I'd use the Date::Calc module from CPAN.http://search.cpan.org/dist/Date-Calc/Calc.pod

Code:
($y,$m,$d) = Delta_YMD($year1,$month1,$day1, $year2,$month2,$day2);
Cheers

--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
Reply With Quote