def date_in_range(date1, date2, range):
date_obj1 = convert_date(date1)<EOL>date_obj2 = convert_date(date2)<EOL>return (date_obj2 - date_obj1).days <= range<EOL>
Check if two date objects are within a specific range