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 Platform Community / Forums / Power Apps / How to use multiple va...
Power Apps
Unanswered

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
    153,040 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard