in reply to Re: Re: Date Range Parsing
in thread Date Range Parsing
Either way, you can still use Time::Local and compare your dates in epoch time.
Another option is storing your dates in YYYYMMDD format (as you're already doing); then you can just compare them numerically.
if ($begin_date <= $curr_date and $curr_date <= $end_date) { print "$curr_date is between $begin_date and $end_date.\n"; }
|
|---|