Search: No results if "from" date and "to" date are the same

If the "from" date and the "to" date are the same, no results are found. We probably just need to add 24 hours to the "to" date.

Also, the ```is_date()``` function needs a better regex, and the regex should be implemented as in the ```is_ascii()``` function.