Don't know if it's the "best" way, but I personally would use Date::Calc's Delta_Days function.
In reply to Re: Comparing dates in Perl by dasgar in thread Comparing dates in Perl by DaveMonk