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 / Date Issue On Recurrin...
Power Apps
Answered

Date Issue On Recurring Events

(1) ShareShare
ReportReport
Posted on by 184

Hi:

Working on a recurring event in Power Apps and the date logic calc, if it runs over to another year stops working correctly.  So, if you select a number of repeats and the below calc extends into the next year the math is wrong and are having trouble finding this.  Any help would be appreciated.

 

Here is the current code, same logic for both start and end date:

StartDate: With({FirstOfMonth:Date(Year(dtestarttime_1.SelectedDate),Month(DateAdd(dtestarttime_1.SelectedDate, Value(ThisRecord.Value -1), TimeUnit.Months)),1),DayOfWeek:varDayValue,N:drpeverynth_1.Selected.Value},
DateAdd(FirstOfMonth,(N * 7) - Weekday(DateAdd(FirstOfMonth, 7-DayOfWeek)))),
EndDate: With({FirstOfMonth:Date(Year(dtestarttime_1.SelectedDate),Month(DateAdd(dtestarttime_1.SelectedDate, Value(ThisRecord.Value -1), TimeUnit.Months)),1),DayOfWeek:varDayValue,N:drpeverynth_1.Selected.Value},
DateAdd(FirstOfMonth,(N * 7) - Weekday(DateAdd(FirstOfMonth, 7-DayOfWeek))))

 

Thank you

Chuck

Categories:
  • Verified answer
    chtraywick Profile Picture
    184 on at

    Hi:

    This formula is correct. just need to tweak the Value(ThisRecord.Value -0) and leave the TimeUnit.Months)),1), as is.

    Chuck

  • Alex-W Profile Picture
    331 on at
    Hello Chuck,
     
    Is your solution still working for you?  I tried using This.Record.Value -0 and my dates are still screwed up once the recurring event hits December and the coming year.  

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard