get data by date, dateSince, and dateBefore