Skip to main content

Notifications

Dynamics 365 Community / Forums / Sales forum / How to add 1 year to a...
Sales forum
Suggested answer

How to add 1 year to a date every year

Posted on by 80

Every January 30th I need to add 1 year to a date, how can I do this? 

I've created a date field that has the starting date, i.e. 01/30/2023 and another field which is equal today. I then have another calculated field that adds a year to the starting date once Today > Starting Date. The problem is how do I deal with it the following year. I'd rather not rely on a workflow copying the calculated field to another field for use the next year but maybe that's the only way. Why does Dynamics make it so hard to work with dates?!

Categories:
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: How to add 1 year to a date every year

    Hi flydancer1,

    Maybe you need try to use Power automate to create one scheduled flow, which can help you achieve goal easily.

    https://learn.microsoft.com/en-us/power-automate/run-scheduled-tasks 

    1.You can start the flow at 01/31/2023, and run it every month:

    pastedimage1673494690054v1.png

    ===========

    Why run it every month?

    (1) The flow does not support repeat intervals per year

    (2) If a flow is not run within 90 days, Microsoft automatically turns it off.

    2.Then you can use 'Condition' to compare the starting date and Now:

    https://debajmecrm.com/how-to-compare-dates-in-power-automate/ 

    3.Add year and update another date, and use now to update the starting date field.

    -Or you can only use the starting date field, add year and update itself directly.

    https://debajmecrm.com/how-add-or-subtract-weeks-months-or-years-from-a-date-in-power-automate/ 

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,142 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,979 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans