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 / end date greater than ...
Power Apps
Answered

end date greater than 7 days

(0) ShareShare
ReportReport
Posted on by 202

Hi

 

i'm trying to validate the end date that should be defaulted to greater than 7days from the start date, if end user is selecting before 7 days it should show some error, is there a possibility to do this ?

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    Hi @Sharuk ,

    You need the DateDiff() Function. So

    If(
     DateDiff(
     StartDate,
     EndDate,
     Days
     )>7,
     Notify(
     "Period cannot be more than 7 days", 
     NotificationType.Error
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    RyanVH Profile Picture
    145 on at

    Hi,


    I'm not sure but maybe you could use this DateDiff(startDate, endDate, Days)

    If( DateDiff(startDate, endDate, Days) < 7, Notify(...)

    I'm not sure if this is what you're looking for.

    Kind regards
    Ryan

  • Sharuk Profile Picture
    202 on at

    Hi @WarrenBelz , in my case i'm looking for end date to be greater than 7days. so that would be <7 days ? correct me if i'm wrong

  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    @Sharuk ,

    Actually <8 days or <= 7 days

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    Hi @Sharuk ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard