I suspect this question is more appropriate to the date module than the views module.

I'm trying to build a view that generates a table of content where the day and month is the same as the current day and month (e.g. similar to a "what happened this day in History" view).

I assume I need to set a relative filter with operator "is equal to"; however, I'm at a loss as to the relative input. I've looked through the PHP documentation without success.

I've tried to play with granularity, but year is the starting point for granularity and I need to exclude it from the filter.

Any guidance would be greatly appreciated.

Cheers
G

Comments

jesss’s picture

I'm attempting something similar -- a This Day in History block. I worked around the Date module's year requirement by using the Views PHP module to set up a PHP filter that extracts the month and day from the date field and compares it with today's month and day. It's not the most elegant solution, but it works.

steinmb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)