Limiting time and date for data collection

@msuuta, maybe these posts discussed previously should help you solve your issue:

And this one too …

And this one too …

And this one too …