writing get_date_range(), and wrote date data structure