I have created a cron job for my module and set the cron to run in every minute. So whenever the cron is run, I'm sending the data collection to another server using ftp.
Now, whenever the cron is running, all the data records is sending to the corresponding server. But I want to send the data like from yesterday night to tomorrow morning instead of sending all the records to server.
Can anyone please suggest me on how can I achieve that?