Fix up searching on date fields for collections and items.
Closes #281