date: add two methods in Date class

1) firstDate() returns the first Date in DateSet.
2) lastDate() returns the last Date in DateSet.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>