@classmethod<EOL><INDENT>def date_range_for_webtrends(cls, start_at=None, end_at=None):<DEDENT>
if start_at and end_at:<EOL><INDENT>start_date = cls.parse_standard_date_string_to_date(<EOL>start_at)<EOL>end_date = cls.parse_standard_date_string_to_date(<EOL>end_at)<EOL>numdays = (end_date - start_date).days + <NUM_LIT:1><EOL>start_dates = [end_date - timedelta(days=x)<EOL>for x in reversed(range(<NUM_LIT:0>, numdays))]<EOL>date_range = []<EOL>for i, date in enumerate(start_dates):<EOL><INDENT>query_date = cls.parse_date_for_query(date)<EOL>date_range.append((query_date, query_date))<EOL><DEDENT>return date_range<EOL><DEDENT>else:<EOL><INDENT>return [("<STR_LIT>", "<STR_LIT>")]<EOL><DEDENT>
Get the day dates in between start and end formatted for query.
This returns dates inclusive e.g. final day is (end_at, end_at+1 day)