Search functionality working for date search