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 / Flow to change date bu...
Power Automate
Unanswered

Flow to change date but keep time of a SharePoint list column

(0) ShareShare
ReportReport
Posted on by 2

Hello there 🙂

 

I could use some help with the following task:

 

We want to edit a Sharepoint list date/time column with a flow, but only change the date and keep the time that is already in the column. So for example if theres a "Due Date" column, with three Elements

 

.                      Due Date

Element 1 -    March 6th 2024 05:00

Element 2 -    March 6th 2024 05:30

Element 3 -    March 6th 2024 06:00

 

We want to update the date to a specific new date but keep the time as it is. So for example, it would be like:

 

.                      Due Date

Element 1 -    April 17th 2024 05:00

Element 2 -    April 17th 2024 05:30

Element 3 -    April 17th 2024 06:00

 

Is there a way to do that with any of the formatDateTime functions? I've been trying out all kinds of combinations but I either get an error message (wrong string/datetime format) or have to use a timestamp which would edit the preexisting times. AM I missing something? Any help would be appreciated!

 

Kind regards,

Sarah

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @snrldn 

    Do you mean you want to format the Date in DateTime field.

    This is the return from the Get items action:

    vyueyunmsft_0-1711504005681.png

    This is my test flow:

    vyueyunmsft_1-1711504019306.png

    formatDatetime( formatDatetime( items('Apply_to_each')?['StartDate'] , '2024-04-27THH:mm:ssZ') , 'MMMM dd\t\h yyyy HH:ss')

     

    The result is as follows:

    vyueyunmsft_2-1711504067245.png

     

     

    Best Regards,

    Yueyun Zhang

     

  • snrldn Profile Picture
    2 on at

    Thanks for the reply 🙂

     

    However, my goal was to target only the date and not the time, because the times are different in each row, so I would need a flow for each row to do that. I was curious whether it was possible to target all dates in the table only, without changing the current time value. I'm afraid that it's not possible (as per my current knowledge).

     

    Thanks again though for your answer, I appreciate 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 Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard