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 Automate / Calculate 2 Years Prior
Power Automate
Answered

Calculate 2 Years Prior

(0) ShareShare
ReportReport
Posted on by 4

Hello Everyone!

 

I am fairly new to PowerAutomate but have some solid flows going to far. I wanted to ask if anyone has encountered the following:

I need to populate a text field with a value of todays date minus 2 years. For example at the date and time of posting this I have todays date as 03/22/2022 and need the value 03/22/2020. Does anyone have any idea how I can accomplish this. I have no problems working with UI elements and variables in automate just don't know how to calculate that date.

 

Thanks to any contributions in advance!

I have the same question (0)
  • Verified answer
    VJR Profile Picture
    7,635 on at

    Hi @mphilip 

    The Add to Datetime action will give you that

     

    VJR_1-1648002754362.png

     

     

     

    VJR_0-1648002701713.png

     

  • mphilip Profile Picture
    4 on at

    Wow! I was not expecting this to be the solution so I never tried lol. Thank you so much for the comprehensive and speedy reply.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard