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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to format date/tim...
Power Automate
Answered

How to format date/time values from a date column in a list

(0) ShareShare
ReportReport
Posted on by 241

Hi All,

 

I have a FLOW that creates an outlook event, and sends a confirmation email to the creator of the event.

I added the start and end dates in the body of both the Event and Email, but the time is in UTC, where my date in my list is in EDT Eastern US.

 

How do i get FLOW to format the date properly when sending the alerts?  As you can see below, the alerts go out 4 hour in the future :)...

 

LeadDB_SendEmailAlert.jpg

 

This is the event showing the correct start and end time but the body is wrong.  I chose the same followupStart in both

LeadDB_OylookEventDatesBoth.jpg

 

 

 

This is from the Email alert

LeadDB_EmailDates.jpg

 

This is from the List

LeadDB_ListDates.jpg

This is from the Outlook event

LeadDB_OylookEventDates.jpg

TIA,

Joe

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    I believe you want to use the Convert Time Zone action.  It will not only convert form UTC for you but will also allow you to format the data/time returned.

     

    Here is link to a great explanation of how to use the Convert Time Zone action

     

    Please post here and let everyone know if this solves your issue.

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @jaylou,

     

    Do you want to convert the Start time and End time from your SharePoint list into your local time zone?

    Could you please share a full screenshot of your flow's configuration?

     

    I agree with @ScottShearer's thought almost, if you want to convert the Start time and End time (which are in UTC format) into your local time zone, I think the "Convert time zone" action could achieve your needs.

     

    I have made a test on my side and please take a try with the following workaround:

    • Add a "When an item is created" trigger, specify Site Address and List Name.
    • Add a "Convert time zone" action, Base Time set to Follow-Up Start dynamic content of the trigger, Source time zone set to (UTC) Coordinated Universal Time, Destination time zone set to (UTC-08:00) Pacific Time (US & Canada).

    Note: The Date time in my SharePoint list is in (UTC-08:00) Pacific Time (US & Canada), on your side, you should set the Destination time zone to EDT Eastern US (The time zone of your SharePoint list).

    • Add a "Convert time zone 2" action, Base Time set to Follow-Up End dynamic content of the trigger, Source time zone set to (UTC) Coordinated Universal Time, Destination time zone set to (UTC-08:00) Pacific Time (US & Canada).
    • Add a "Send an email" action, Body field set to following formula:13.JPG

       The corresponding value of Start Time set to output of the "Convert time zone" action, the corresponding value of End Time set to output of the "Convert time zone 2" action.

    Note: The Date time in my SharePoint list as below:14.JPG

     

    Image reference:15.JPG

     

     

    The flow works successfully as below:

    16.JPG

     

    17.JPG

    More details about the "Convert time zone" action, please check the following article:

    https://flow.microsoft.com/en-us/blog/working-with-dates-and-times/

     

     

    Best regards,

    Kris

  • jaylou Profile Picture
    241 on at

    Hi guys,

    Thanks for the responses 🙂

     

    As in the my images of my FLOW, I am still trying to understand why the event is scheduled correctly in my time zone, but the body of the event doesn't use the same time zone for the same date column from the list...

     

    Why do we have to jump thru so many hoops to get FLOW to work properly?  wouldn't it make sense for FLOW to use the same timezone for all dates?  Especially within the same task?

     

    The images didn't come in in order but I think got it all...

     

    LeadDB_FLOWforKris.jpgLeadDB_FLOWforKris1.jpgLeadDB_FLOWforKris2.jpgLeadDB_FLOWforKris3.jpgLeadDB_FLOWforKris4.jpg

     

    Thanks again,

    Joe

  • jaylou Profile Picture
    241 on at

    Thanks both for the answer!! 

     

    Shouldn't have to, but it works 🙂

     

    Joe

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard