I am setting up a view, with the Authored on filter exposed. When selecting the box, there isn't any popup calendar.

Doesn't Drupal 8 come with a calendar popup in core? How can I turn this on for exposed filters with date?

  • Check if calendar module is enabled – Syam Aug 30 '16 at 15:05
  • How do you solve the problem? – Adrian Cid Almaguer Oct 28 '17 at 0:42
  • try the date module or if not do it manually using a js library for date popups – Patoshi パトシ Oct 30 '17 at 14:53
  • Finally how do you solved the problem? – Adrian Cid Almaguer Feb 2 '18 at 20:42

This can be done with the Better Exposed Filters module.

Enable the module, set it as the exposed form handler under Advanced -> Exposed form style, on the BEF settings page dialog set the filter display option to "jQuery UI Datepicker". Save everything and you should be good to go.

Note that changing from the default date format may require you to implement hook_better_exposed_filters_display_options_alter.

| improve this answer | |

You can use the Single Date Time Picker module.

Date time picker form element using the xdan jQuery Plugin Date and Time Picker library - https://github.com/xdan/datetimepicker.

It supports date/time and date fields. You can use it on Datetime and Datetime Range fields.

| improve this answer | |
  • AFAICT that doesn't do anything for views filters, only entity field widgets. – joachim Jun 28 '18 at 12:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.