This might be of some help....?
On the Newbies forum I posted
here
an autoexpire script. It should be easy to echo the path of a jpg.
If the date was coming from a database then an admin page could be set up so a newbie could change the date using a form?