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 / How to use multiple va...
Power Apps
Answered

How to use multiple values (days, months, and years) with DateAdd function

(1) ShareShare
ReportReport
Posted on by 383
I'm trying to allow users to add a requested number of days, months, and/or years to a date that is being captured in my form. I've got the formula working fine with only one of these intervals at a time, but it doesn't seem to work if I try to add days, months, and years all at once.
 
For example, this works:
DateAdd(ThisItem.'Grace Period Date',ThisItem.'Additional Years',TimeUnit.Years)
 
But this does not:
DateAdd(ThisItem.'Grace Period Date',ThisItem.'Additional Years',TimeUnit.Years, ThisItem.'Additional Months', TimeUnit.Months, ThisItem.'Additional Days', TimeUnit.Days)
 
Not sure if I have a syntax issue or if DateAdd is just not able to do multiple different intervals at once. How can I get the values from the additional years, months, and days fields added to the Grace Period Date?
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,757 Most Valuable Professional on at
    Hi TrayH 
    Chain them like this
    DateAdd(
       DateAdd(
          DateAdd(
             ThisItem.'Grace Period Date',
             ThisItem.'Additional Years',
             TimeUnit.Years
          ),
          ThisItem.'Additional Months', 
          TimeUnit.Months
       ), 
       ThisItem.'Additional Days', 
       TimeUnit.Days
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • TrayH Profile Picture
    383 on at
    Thank you Warren! That did it!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard