in reply to Re: Date::Calc question
in thread Date::Calc question

so im stuck again... i can not find a function in Date::Calc, which can check for date "order", eg. one date (from) is before another (to).

Replies are listed 'Best First'.
Re^3: Date::Calc question
by marto (Cardinal) on Jul 21, 2015 at 13:07 UTC

    Take a look at the module documentation, Delta_Days returns the difference in dates, if the $difference (in your example) is negative then date 2 occurred this number of days before date 1.

    Update: Fixed typo.

      perfect, thank you!