Fixed a bug where a date could not be used in a filter.