Added two aggregating commands that takes date spans.