example shows how to minus 1 day from the current days date. This is
used on line 4 where the variable is set to search the YOURSTRUCTURENAME
structure based on the published Date where the date starts from the
beginning of time to today-1.
can revert as many days as you like (even get the info from a
querystring). The function will also maintain the date structure and
time (i.e. 27/01/1985 03:45:00).