Try using DateTime::Format::Duration with the %j pattern
--d Loo, Peter # PHX wrote:
Hi,I am trying to obtain number of days difference between two dates. Isit possible to do this using DateTime.pm? For example:2006-09-06 - 2006-08-12 = 25 days The result that I want is 25 days. I tried using the $diff = $dur->in_units( 'days' ); but I am only getting the difference between 12 and 6. The differencebetween the months is left out.Thanks. Peter