I want to have a continuous date sequence like ['2014-01-01','2014-01-02', ...]
Then I define a stream to do that.
def daySeq(start: Date): Stream[Date] = Stream.cons(start, daySeq(plusDays(start, 1)))
I get the sequence within range [start, end) by calling
daySeq(from).takeWhile(_.getTime < to.getTime)
Any better/simple solution to do this ?