Criteria entries by date field
You don't need any extra php code to do that.

The search function probably does the job for you.

{% set entries = craft.entries.section('orders').search('2016-04-14') %}
{% for entry in entries %}
  &lt;h1&gt;{{entry.title}} - {{entry.customDateField}}&lt;/h1&gt;
{% endfor %}