I have been trying to use a date template variable in my query hook and cannot seem to get it to work. Has anyone had any luck setting up a date tv as a way to filter results?
here are what my conditions look like:
$andConditions = array(
'tv.stlrooms:=' => 'rooms:request:all',
'tv.stldatefrom:<=' => 'stldatefrom:request',
'tv.stldateto:>=' => 'stldateto:request'
);
I am passing in a unix timestamp into the two date request variables.
Any help would be much appreciated.