Fixes to get search by date working. The various filters are not doing any error checking - I put some quick checks in place but these
filters need to be investigated.