Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filtering Sharepoint Lists on a "Now" or "Today"

Tags:

I'm trying to find an effective method of filtering Sharepoint lists based on the age of an item. In other words, if I want to find list items that are 7 days old, I should be able to build a filtered view on the data.

There is a hack to build a "Today" field that works, but doesn't filter properly.

Does anyone have any good ideas?

like image 624
Nick Ryberg Avatar asked Apr 13 '09 19:04

Nick Ryberg


People also ask

How do I filter a date range in SharePoint?

Filter by Date RangeType in a date or choose one with SharePoint date picker control and click Filter to apply the filter.


1 Answers

If you want to filter only items that are less than 7 days old then you just use

Filter

  • Created

  • is greater than or equal to

  • [Today]-7

Note - the screenshot is incorrect.

New items - created in last 7 days

[Today] is fully supported in view filters in 2007 and onwards (just keep the spaces out!) and you only need to muck around with calculated columns in 2003.

like image 59
Ryan Avatar answered Sep 19 '22 10:09

Ryan