Aggregate date range code added in gettime