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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / how do delay untill da...
Power Apps
Answered

how do delay untill date should have diffrence of 30 days?

(0) ShareShare
ReportReport
Posted on by 150

Hii,

There is date field in form

check wether date in form and  current date has difference of 30 days?

if condition not fulfilled then  it should delay untill having difference of 30 days. 

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,143 on at

    @Tejaswini1234 

     

    In PowerApps to check date difference use

     

    DateDiff(datepicker.SelectedDate,Today(),Days)

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Verified answer
    K-A-R-L Profile Picture
    715 on at

    Hi @Tejaswini1234 ,

    Have you tried the solution above?
    You can try this:

    If(DateDiff(datepicker.SelectedDate,Today(),Days) <> 30, ThenResult , DefaultResult ) or in your case

    If(DateDiff(datepicker.SelectedDate,Today(),Days) <> 30, Delay)

    Best of luck mate!

    ----------------------------------------------------------------------------
    Thanks,
    K-A-R-L


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    If you thought this post was helpful, please give it a Thumbs Up.

  • v-yutliu-msft Profile Picture
    on at

    Hi @Tejaswini1234 ,

    Do you mean that you want to check the date field and if it is <30 then modify the date to =30?

    Try this formula:

    ClearCollect(test,
    AddColumns(
    Filter(tablename, DateDiff(datefieldname,Now())<30), //filter the items that datediff<30
    "newdate",datefieldname+30 //add a newdate= olddate+30
    )
    )
    ForAll(test,Patch(tablename,LookUp(tablename,ID=test[@ID]),
    {datefieldname:newdate}
    ) //modify multiple records at once

    Please replace the tablename ,datefieldname with the name that you use.

     

    Best regards,

    Community Support Team _ Phoebe Liu

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard