Finished date_range function.