M
M
Mark Maddison2017-11-30 16:09:08
Drupal
Mark Maddison, 2017-11-30 16:09:08

How to set filter criteria by date in Drupal7?

Hello!
Can you please tell me how to properly set up filtering criteria in drupal 7 (views).
I need to do four options:

  • For all the time
  • Today
  • This week
  • This month

I tried, it sorts, but it's a little crooked, for example, if I want to display material for today, I put the operator " Less than " and the value " -1 day ", then display for today and yesterday, the same problem with other options.
Tell me, what's the problem?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Shatokhin, 2017-11-30
@bonzik

set the value to " now "

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question