cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

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

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. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Solution Specialist
Solution Specialist

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

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.

View solution in original post

3 REPLIES 3
Dual Super User II
Dual Super User II

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

@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

Highlighted
Solution Specialist
Solution Specialist

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

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.

View solution in original post

Highlighted
Community Support
Community Support

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

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

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,537)