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 / How to display date an...
Power Automate
Answered

How to display date and time in an "Update item" field for a SharePoint list in a flow

(0) ShareShare
ReportReport
Posted on by 782

In my flow I have an "Update item" action that updates a "Multiple lines of text" field in a SharePoint List. I am trying to display the date and time in a format like the following:

 

06/23/2022 4:23 PM

 

So I am using the following expression:

 

formatDateTime(utcNow(),'MM/dd/yyyy hh:mm tt')

 

The problem is that I am in the Eastern Time Zone which is UTC-4. Is there a way that I can get the date and time to reflect my time zone in my statement above or do I need to add another action to get the current date and time and not use utcNow() here?

 

If I need to use another action, what is the best and most efficient way to do this? 

Categories:
  • Verified answer
    Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at

    Hi @Greg27 

    you can convert the timezone to your time zone as needed

    either you can use convert timezone action as below

     

    Shujaath_Khan_2-1655986796108.png

    or if not in expression as you can try to convert the timezone as below

     

     

    convertTimeZone(utcNow(),'UTC','Eastern Standard Time','HH:mm')

     

     

     

    Hope it helps

    Thanks

    Please click Accept as Solution on this reply if it helped to solve your issue, and thumbs-up if you feel this is useful or important in other ways as a boost.

     

     

  • Greg27 Profile Picture
    782 on at

    @Shujaath_Khan 

    If you use the action listed above, What value do you put in the "Base time" field?

  • Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at

    Hi @Greg27 ,

    Utcnow() would be your base time to be converted to eastern time 

    The benefit what we would get here is besides formatting we're even converting to specific timezone 

    Thanks

     

     

     

  • Greg27 Profile Picture
    782 on at

    I tried to use utcNow() as the Base time, but I got an error. Here is the error:

     

    Greg27_0-1656000184155.png

     

    Here is the screenshot of the action "Convert time zone":

     

    Greg27_1-1656000250911.png

     

    Do I have something wrong?

     

     

  • AbigailRRausch Profile Picture
    41 on at

    Hi, Greg! It looks like you need to put utcNow() as an expression, as right now it's just viewing it as a string called "utcNow()".

    AbigailRRausch_0-1656006648056.png

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Greg27  Please write utcnow() in expression of dynamic content .

    pls mark @Shujaath_Khan @reply as answer. He had given correct solution.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Greg27 Profile Picture
    782 on at

    @AbigailRRausch 

    Thanks, that worked for the Base time, but my "Update item" field still shows the UTC date and time instead of the date and time for EST. I'm just trying to get the date and time in my "Update item" field to show in EST.

  • AbigailRRausch Profile Picture
    41 on at

    @Greg27  You're using the Output of the Converted Time in your Update Item action and it's still coming out weird, right?
    Are you updating a Date/Time column type? Things can get weird that way, because Sharepoint stores Date/Time in UTC, and expects it as an input (it does the time conversion itself to transform to the Site time per the Site Settings).
    Screenshot 2022-06-23 144245.png

  • Greg27 Profile Picture
    782 on at

    @AbigailRRausch 

    Thanks Abigail!! That worked. I need to do this over and over in my flow as it is acting as a log file. Every action I do, I am saving the date and time the event happened. So I could end up doing this 5 or 6 times in the flow. Would I need to convert the date and time and then use the "Converted time" expression for each event I want to log?

  • AbigailRRausch Profile Picture
    41 on at

    @Greg27 
    Awesome! Glad it's working. Yes, if it's logging at different times, you would just use the action again and the matching appropriate "Converted Time" Dynamic content each time. Good luck!

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard