add date param when fetching data