use a factory and pass in the startDate / endDate there.