from date = 11/01/2000 to date = 11/01/2016 #### if(($from_date lt $dir[$i]) && ($to_date ge $dir[$i])) #### $dir[$i]