This needs an exception handler for invalid date params.