modified search function

when search for date, don't search for keyword