Good Day!
Need help please..
How to convert this Excel formula to PowerApps formula
=Datedif(StartDate,Endate+1,"y")
=Datedif(StartDate,Endate+1,"ym")
=Datedif(StartDate,Endate+1,"md")
thanks and Advance!,,,
Solved! Go to Solution.
Hi @DHAGZ ,
You could try this formula instead of “=Datedif(StartDate,Endate+1,"y")”
DateDiff(DatePicker1.SelectedDate,DatePicker2.SelectedDate,Years)
You could try this formula instead of “=Datedif(StartDate,Endate+1,"ym")”
Abs(Month(DatePicker2.SelectedDate)-Month(DatePicker1.SelectedDate))
You could try this formula instead of “=Datedif(StartDate,Endate+1,"md")”
Abs(Day(DatePicker2.SelectedDate)-Day(DatePicker1.SelectedDate))
Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.
Hi @DHAGZ ,
You could try this formula instead of “=Datedif(StartDate,Endate+1,"y")”
DateDiff(DatePicker1.SelectedDate,DatePicker2.SelectedDate,Years)
You could try this formula instead of “=Datedif(StartDate,Endate+1,"ym")”
Abs(Month(DatePicker2.SelectedDate)-Month(DatePicker1.SelectedDate))
You could try this formula instead of “=Datedif(StartDate,Endate+1,"md")”
Abs(Day(DatePicker2.SelectedDate)-Day(DatePicker1.SelectedDate))
Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.
Hi @DHAGZ
You can use DateDiff function to get the difference between two dates. To get more details on DateDiff function, you can refer: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-dateadd-datediff
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
User | Count |
---|---|
184 | |
123 | |
90 | |
46 | |
42 |
User | Count |
---|---|
268 | |
160 | |
130 | |
82 | |
76 |