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 / DateAdd() with minutes...
Power Apps
Unanswered

DateAdd() with minutes is calculating the date wrong

(0) ShareShare
ReportReport
Posted on by 3,514

I have this formula, which is for adding a Date and add minutes to the date, as follow:-

 

 

 

ForAll(
 collCheckedDays,
 Collect(
 CollSelectedDaysDetails,
 {
 SelectedDate: Text(ThisRecord.Value,"mm/dd/yyyy"),
 SelectedStartTime: 
 Text(DateAdd(
 Text(ThisRecord.Value,"mm/dd/yyyy"),
 If(
 tgAllDayEvent_1.Value,
 ddlHalfDayPart_1.Selected.StartMinutes,
 ddlStartTimeBulk.Selected.Minutes
 )
 ,
 TimeUnit.Minutes
 ),"mm/dd/yyyy hh:mm")
 
 ,
 SelectedEndTime: 
 Text(DateAdd(
 Text(ThisRecord.Value,"mm/dd/yyyy"),
 If(
 tgAllDayEvent_1.Value,
 ddlHalfDayPart_1.Selected.EndMinutes,
 ddlEndTimeBulk.Selected.Minutes
 ),
 TimeUnit.Minutes
 ),"mm/dd/yyyy hh:mm")
 
 
 
 }
 )
);

 

 

 

but the result date from the AddDate will be as follow:-

 

johnjohn123_0-1695047066550.png

 

although the minutes values will be either 540, 30 or 720... so why it is adding almost one and a half year?

Thanks

 

also this issue is only happening on Microsoft Edge, while working well on chrome and firefox.. i am totally confused !!

 

Categories:
I have the same question (0)
  • Matthy79 Profile Picture
    4,188 Super User 2024 Season 1 on at

    Why are converting the date to text before adding the minutes. This doesn’t make sense in my opinion. Maybe when powerapps converts it back to a date it has a problem with the formatting you used.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard