web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Duplicate date in another column with year change

(0) ShareShare
ReportReport
Posted on by 87

Hi!
I've a list with hire date of employees. 
Screenshot_645.png
I am using a web part on my homepage to display Anniversaries.
It is designed in SPFx and requires an additional Internal Hire Date column for calculation, which is the same date as Hire Date, only the year is always 1970. This is done to filter by day, week, and month.
Screenshot_647.png
Manually entering the same date each time in this column is not very convenient. How can I build a flow so that the date is automatically substituted the same, only the year always changes to 1970?
The format of the Calculated column is not suitable because this format cannot be filtered. 

This is how I started my flow, need to understand what formula to insert for replacement:
Screenshot_648.png

I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at
    Re: Duplicate date in another column with year change

    Hi @Pavel48n0sh ,

     

    Please try:

    addToTime(internalHireDate,sub(int(formatDateTime(HireDate,'yyyy')),1970),'year')

     

    Best Regards,

    Bof

  • Pavel48n0sh Profile Picture
    87 on at
    Re: Duplicate date in another column with year change

    Dear @v-bofeng-msft,
    I tried to add this formula, but got an error.
    Screenshot_650.pngScreenshot_649.pngScreenshot_652.png
    Perhaps this is due to the fact that my Internal Hire Date column is initially empty and the value should be automatically entered into it.
    Both columns Internal Hire Date and Hire Date are in Date and Time format.
    Could you help please?

  • Verified answer
    Pavel48n0sh Profile Picture
    87 on at
    Re: Duplicate date in another column with year change

    It seems that I was able to achieve the desired result. Here is my final solution.Screenshot_653.png

    Screenshot_654.png

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard