Skip to main content
2 of 2
added 1 characters in body
Patrick Kenny
  • 29.4k
  • 19
  • 139
  • 316

How can I group view results based on the week of the year using a date field?

I have a list of events (custom content type event) shown in a view.

There are several events each week. Each event has a date field, date, that records the date that the event will be held.

I would like to group the events by the week of the year that they occur. For example:

  • Next week
  • Two weeks from now
  • Three weeks from now
  • Four weeks from now

Is there a fancy way to compute the week using the date field and views grouping?

Patrick Kenny
  • 29.4k
  • 19
  • 139
  • 316