if ($begin_date <= $curr_date and $curr_date <= $end_date) { print "$curr_date is between $begin_date and $end_date.\n"; }