Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.x-dev
Component:
Views Data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2008 at 22:21 UTC
Updated:
29 Mar 2008 at 20:32 UTC
Is there a way to filter by the node creation date, but instead of saying greater than or less than a certain date I can say greater than or less than 7 days, so I can have a 'weekly' block?
Comments
Comment #1
JuliaKM commentedYou can do this with the node creation date by using the date value and option. For example, if you would like to show all nodes created in the last 7 days, you would enter the following into your date filter:
- operator: greater than or equal to
- value: now
- option: -604800
In other words, you are now filtering for nodes that have a date that is between now and today minus the last 7 days (604,800 seconds).
Comment #2
GameCollision commentedCool, thank you very much. :)
Comment #3
JuliaKM commentedComment #4
JuliaKM commentedComment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.