Search now works with date functionality