in reply to Re^2: Extract data based on dates and place in new file
in thread Extract data based on dates and place in new file

"...send it to the dfile without having to input the dates. "

Looks like this is a different question than originally posted?

Seems that way to me.

So, check CPAN for modules with "Date" and/or "Time" -- after all, something needs to tell the script that you want Cron to run which dates to check...

Or, re-write your script with the ASSUMPTION that Crom will run it shortly after midnite; calculate the desired dates from gmtime or localtime, as appropriate.