def _format_range_dt(self, d):
if not isinstance(d, six.string_types):<EOL><INDENT>d = d.isoformat()<EOL><DEDENT>return '<STR_LIT>'.format(<EOL>d, self.dt_rounding_map[self.aggregation_interval])<EOL>
Format range filter datetime to the closest aggregation interval.