fix search by date for date