A
A
andreystrelkov2014-01-30 08:38:41
Drupal
andreystrelkov, 2014-01-30 08:38:41

How to filter nodes in Drupal Views only for the current month and day?

I can’t understand, I have a base of significant days in history, which needs to be displayed only for the current day (the Date module is also installed)
I.e. I need to make a filter in the view by month with the parameter Enter relative date - NOW , and by day in the same way.
However, when creating such filters, drupal builds the query as if from top to bottom, i.e. if you specified granularity by day, then the query will be
%Y-%m-%d
, it turns out that the year is also involved, and it is 1960 , and now 2014 , and everything is empty in the results
, how then can only %m-%d be done

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andead, 2014-01-30
@andead

If we are talking about a filter by the field of the Date module, then without writing code - nothing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question