* Added a setDate function in the calendar util and tweaked other
functions.

* Modified tests in the search page class so that they use the setDate
function.