Do you know where your variables are? | |
PerlMonks |
Re: DateCalc using Date::Manipby 1nickt (Canon) |
on Jan 10, 2017 at 13:00 UTC ( [id://1179303]=note: print w/replies, xml ) | Need Help?? |
Hi tsdesai I am trying to count days between two dates ... You can use DateTime's delta_days() method for this. Output: [ Note that you still have to use in_units() because delta_days() returns a DateTime::Duration object (with all values rolled into a whole number of days). ] Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|