web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / is today between Date ...
Power Apps
Answered

is today between Date 1 and Date2

(0) ShareShare
ReportReport
Posted on by 228

Hello,

 

i have in a SharePointList with 2 date fields. Let's say Date_from and Date_to.

Now i want check is today between Date_from and Date_to, important is i want only check the day and month and not the year.

 

is it better to take text field and not a date field in the SharePointList?

 

e.g.

Checkt is today between 01.10 an 31.03 (Date_from and Date_to)

 

I hope anyone has an idea

 

Thanks

Categories:
I have the same question (0)
  • David Jennaway Profile Picture
    716 on at

    There are a few different ways to do this. In PowerApps I'd format the date into a string based on the month and day for each date, which would give a value you can compare. For example:

    If(And(Text(Now(), "mmdd") >= Text(Date_from, "mmdd"), Text(Now(), "mmdd") <= Text(Date_to, "mmdd")), <result>)

     

     

     

  • Tamer66 Profile Picture
    228 on at

    Hi @DavidJennaway 

     

    i have a little bit problem to understand this formula.

     

    - My Sharepoint Fields are date fields <-- is this correct?

    - i fetch and filter the data from SharePoint via gallery and and a filter function

     

    how can i use this formula in my gallery?

     

    My Filter Formula in the Gallery is:

    Filter(
     Fischliste;
     Title = drpSchonmass.SelectedText.Title
    )
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    See below for a formula to determine if a date comes between others, edit to work with your data. If this helps you solve your issue please mark it as a solution thanks!

     

     

    istodaybetween.PNG

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard