module template generate a data csv file
Design and Skin Customization

- good, I've tricked you into learning more development HAHA!
The index.php file controls url pages, so if it has a url, then the function is in the index.php file.
The include.php file is for functions that don't have a url.
In the index.php file for the url your-site.com/csv/create is the function view_xxCsv_create(). Thats the function that controls that url your looking at.
Your question is how do I change the search query in that function:
$_sp = array(
'search' => array(),
'return_keys' => $_keys,
'skip_triggers' => true,
'privacy_check' => false,
'ignore_pending' => true,
'limit' => 500
);
$_rt = jrCore_db_search_items($mod, $_sp);
To search for something?
and the answer is "You add it to the 'search' array request".
Can you see that in the code above?
That's expecting the same structure as the jrCore_list template functions expect:
"{jrCore_list}"
http://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list
So "created in may" is what you want to turn into a number that your server can understand.
In the datastore the all items have a '_created' element as a
timestamp so you need to figure out when the first of may is as a timestamp, and the end of may is as a timestamp and use that in your query.
Using this online converter to create an example we can know
http://www.unixtimestamp.com/index.php
1st MAY 2015 is 1430438400
1st JUNE 2015 is 1433116800
So thats the time period to use.
'search' => array('_created > 1430438400', '_created < 1433116800'),
Is what you want.
You're probably going to want to take that as an input from the URL so you're going to need to set up a mechanism to transform what comes from the url into a timestamp. (or recorde a different date format for your things)
your-site.com/csv/create/mod=jrAudio/keys=audio_title,audio_genre/search1=_created-gt-1430438400/search2=_created-lt-1433116800
or something along those lines.