SharePoint: Show item modified in the past 14 days in list web part

No comments

Sometimes we need to show or display the SharePoint list items those were modified in last <n> number of days. Here in this example I will describe that how to show items modified in the past 14 days in personal web part.

For an example – I will modify the default “Documents” library web part. Select the web part – then click on “Edit current view” from list view selection drop down list like below.

 

SharePoint list-library web part filter with [today] function
SharePoint list-library web part filter with [today] function
Then we will land into the view modification page – go to the “Filter” section. Select “Show items only when the following is true:

Show the items when column

Modified is greater than or equal to

[Today]-14

Then click on “Ok” button.

Note:

In this 14 is <n> number, we can give the number as per our need.

SharePoint list-library web part filter with [today] function
SharePoint list-library web part filter with [today] function
Now navigate to the view page or home page of the site – look at the items displayed there – we can see that only those items were modified in the last 14 days are being displayed.

SharePoint list-library web part filter with [today] function
SharePoint list-library web part filter with [today] function
Summary:

In this post we have learned the below:

  • How to show items modified in the past 14 days in personal web part.
  • How to use [Today] function in SharePoint list or library view filter.
  • How to display selected items using filter in SharePoint.

 

See Also: