in reply to Difference between dates
You might need to parse your date strings to use this, but Date::Calc should work.