cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tamer66
Level: Powered On

is today between Date 1 and Date2

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

1 ACCEPTED SOLUTION

Accepted Solutions
TheRobRush
Level 8

Re: is today between Date 1 and Date2

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

 

View solution in original post

3 REPLIES 3

Re: is today between Date 1 and Date2

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
Level: Powered On

Re: is today between Date 1 and Date2

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
)
TheRobRush
Level 8

Re: is today between Date 1 and Date2

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

 

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,234)