I am using exposed filter condition for date field in views.

I want to see the data in view by current date as default ..for that i am trying to give date field should be default by today date and when i click on date filter and select on previous date i should see the previous data..

Is this possible by filters.

1 Answer 1


Yes it is possible.

  1. Choose the date field in Filter Criteria section in Views

  2. On the RHS of your date filter settings, you will see a section to enter a default relative date (refer screenshot)

  3. Choose 'Enter a relative date' & enter the relative date as 'today'

  4. Apply the filter & Save the view

enter image description here

  • @ Supriya Rajgopal - thanks for your response. I am using post date field i hope will work for that also .i will try with this and get back to you.
    – DINE
    Oct 26, 2015 at 12:01
  • @ Supriya Rajgopal - Thanks a lot it is working fine.
    – DINE
    Oct 26, 2015 at 12:06
  • With the last drupal version, you don't have to select the relative date value. Just put any relative date string directly into the value field would work
    – Lliw
    Aug 22, 2018 at 13:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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