read data by specifying the dates