Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8206393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:38:54+00:00 2026-06-07T08:38:54+00:00

How to Filter data having DateTime format according to the CurrentDateTime in SharePoint? I

  • 0

How to “Filter” data having “DateTime” format according to the “CurrentDateTime” in SharePoint?

I have a datetime data field named “CreatedOn” (DateTime), I want to apply filter where I want to Display items only “GreaterThan Or EqualTo” the “CurrentDateTime”.

I tried with this CAML Query in the where condition but didn’d succeed, it was filtering only according to current date not the “CurrentDateTime”

<Where>            <Geq>              <FieldRef Name="CreatedOn"/>              <Value Type="DateTime" IncludeDateTime="TRUE">               <Today/>              </Value>             </Geq>             </Where>

Any help is appreciated.

Vinu

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:38:56+00:00Added an answer on June 7, 2026 at 8:38 am

    This was the solution I got from Emir Liu

    Hi Vinu,

    Please create a Data View Web Part instead of List View Web Part in this way in SharePoint Designer:

    Insert > Data View > Empty Data View > Select your list > Select the fields you need to display in the web part > Insert them as multiple list items.

    Because that we need to use formula as the filter value, but List View Web Part is not supported to use formula as the filter value, then Data View Web Part is needed.

    Use following formula as the filter value, so that data view will only display the items which their CreatedOn field is greater than or equal to current date time.

    number(ddwrt:FormatDateTime(string(@CreatedOn),3081,’yyyyMMdd0000′))+number(ddwrt:FormatDateTime(string(@CreatedOn),3081,’HHmm’))>= number(ddwrt:FormatDateTime(string(ddwrt:TodayIso()),3081,’yyyyMMdd0000′))+number(ddwrt:FormatDateTime(string(ddwrt:TodayIso()),3081,’HHmm’))

    Add the formula this way:

    Put your mouse with the data view > Click Filter button under Options tab in SharePoint Designer ribbon > Enable “Add XSLT Filtering” option > Click Edit button > Paste above XPath here.

    Let me know if you have any question.

    Thanks & Regards,
    Emir

    Thank you
    Vinu

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to filter the data in my SQL so that I only have
Say you have a few DropDownLists that filter data: Car Make: [Ford,Chevrolet,etc] Car Year:
i want to filter the data from a datatable using dataview row filter Datatable
I have made a filter function but I am having trouble with the starting
I have the unfortunate task of having to import data from excel into a
I having a viewstate to store a data query from SharePoint, where the data
How can i use NSSearchField for filter data that i load into program with
I'm trying to make a cgridview that can filter data from relations table. This
I'm getting follwing error while I'm trying to filter data for the second time
I need to filter the data using a filter where CategoryId = 75 and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.