Slightly abstract how date is defined

We used to use as_of as a query string parameter; we now have
separate day, month and year values (not completely sure why?).