How to make exposed timestamp filter accept human readable date I'm using Drupal 8. I created a new content type (title, body, image, date).
The date is a timestamp field.

I used the devel module and the Realistic Dummy Content module to generate a test content for my view test.

I created my test view and chose the date as an exposed filter.

Here is my configuration:


And this is my view:


When I apply my filter, I want to say all contents having a date greater than my input:

If I test with 01/31/2018 - 02:54, nothing was changed!

But If I test with the unix value: 1538323253, my filter works well!

Any idea please to make the filter with human readable value?
I ran into this issue on D7. I enabled the views query and noticed that the values were being passed as human date to the query rather than timestamp.

So what I did was use hook_views_query_alter and converted them to timestamp.

Example code (D7 code)

function mymodule_views_query_alter(&amp;$view, &amp;$query) {
  if ($view-&gt;name == 'list_employers') {
    foreach ($query-&gt;where[1]['conditions'] as $con_key =&gt; $con_val) {
      if ((strpos($con_val['field'], 'node.created = ') !== FALSE) &amp;&amp;
        empty($con_val['value'])) {
        $date = $con_val['field'];
        $date = str_replace('node.created = ', '', $date);
        $date = date('m/d/Y', $date);
        $start = strtotime($date . ' 12:00 AM'); // convert to timestamp
        $end = strtotime($date . ' 11:59 PM'); // convert to timestamp
        unset($query-&gt;where[1]['conditions'][$con_key]['value']); // remove default condition
        $query-&gt;where[1]['conditions'][$con_key]['field'] = 'node.created';
        $query-&gt;where[1]['conditions'][$con_key]['value'][0] = $start;
        $query-&gt;where[1]['conditions'][$con_key]['value'][1] = $end;
        $query-&gt;where[1]['conditions'][$con_key]['operator'] = 'BETWEEN';
      }
    }
  }
}