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 Apps
Answered

power app

(0) ShareShare
ReportReport
Posted on by

hey guys can you'll kindly assist me, I'm trying to create the formular that will be set on date control default as a due date, due date is two weeks from current date. 

Categories:
I have the same question (0)
  • timl Profile Picture
    36,558 Super User 2025 Season 2 on at

    Hi @swelihle 

    This will give you the date that is 2 weeks from today:

    DateAdd(Now(), 14, TimeUnit.Days)
  • SL-07111355-0 Profile Picture
    on at

    how can i exclude weekends for my due date 

     

  • Verified answer
    timl Profile Picture
    36,558 Super User 2025 Season 2 on at

    @swelihle 

    If you want to return a date that's 10 working days from today (ie, 2 weeks excluding weekends), this is the formula that you would use.

    With({ startDate:Now(),
     daysToAdd: 10
     },
     DateAdd(startDate, daysToAdd) + 
     RoundDown(daysToAdd/5, 0)*2 +
     Switch(Weekday(startDate, StartOfWeek.Monday),
     5,If(Mod(daysToAdd, 5)>0,2,0),
     4,If(Mod(daysToAdd, 5)>1,2,0),
     3,If(Mod(daysToAdd, 5)>2,2,0),
     2,If(Mod(daysToAdd, 5)>3,2,0),
     1,If(Mod(daysToAdd, 5)>4,2,0)
     )
    )

     

  • Verified answer
    timl Profile Picture
    36,558 Super User 2025 Season 2 on at

    Hi @swelihle - can you confirm whether the above answers your question?

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 380 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 340

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard