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 / Help with Time Convers...
Power Automate
Answered

Help with Time Conversion in Email.

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I built a flow that sends an email and in the email it has the time and date that is coming from a SharePoint list.  However, in the email the time is showing incorrectly and I have tried multiple ways to resolve this but can't.

 

The ConvertTimeZone conversion in my flow seems to be working properly (see below) but it isn't flowing through to the email correctly (UTC to EST)

 

JeffC_6-1655755330924.png

JeffC_2-1655754682083.png

 

I then create a variable to convert the time from an unfriendly view to more friendlier view.

 

Variables Below

 

JeffC_3-1655754833324.png

 

Then in the email I create a dynamic query based off of the varDate variable.

 

JeffC_4-1655754892000.png

formatDateTime(variables('varDate'),'f')
 
At this point, below is the time that shows up in the emai which is 7 hours behind which isn't UTC or eastern time (I am in EST)
 
Example Email
My name is XXX and I will be conducting your IT Orientation on Monday, June 20, 2022 4:22 PM. 
 
The time is actually 7 hours ahead of the time I have in my sharepoint list.
 
JeffC_5-1655755076284.png

 

So at this point  in the beginning of the flow the convertimezone is changing it time correctly by 4 hours.  However, when I try to modify the time in the email it shows 7 hours difference.

 

Any thoughts that anyone has would be greatly appreciated!

 

Jeff

 
 

 

 

 

 

Categories:
I have the same question (0)
  • JonDoesFlow Profile Picture
    1,304 on at

    Hey Jeff,

     

    Shouldn't the vardate, be set to the value of the output of the converted time zone ?

  • JeffC Profile Picture
    on at

    But the vardate value is set to the orientation date column in sharepoint.  If I remove it and add in the converted time into the value then what does the expression look like in the email?

     

  • JonDoesFlow Profile Picture
    1,304 on at

    Shouldn't you in that case, be doing the conversion of the date on the orientation date, not UTCNOW ?

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @JeffC ,

     

    I have made a simple test on my side. Maybe you could try as follows.

    vyujincuimsft_0-1655877089338.png

    vyujincuimsft_2-1655877401001.png

    vyujincuimsft_3-1655877471271.png

    Result Screenshot:

    vyujincuimsft_4-1655877562469.png

     

    In addition, maybe you could considering using the addHours() function.

    addHours(items('Apply_to_each')?['ColumnName'],-8,'f')

    vyujincuimsft_5-1655878116509.png

     

     

    Best Regards,
    Charlie Choi

  • JeffC Profile Picture
    on at

    Thank you very much for your response.  I went at it a  little differently by inititizing a date/string variable, set a variable to the SharePoint column, created a compose with the date and time format I wanted, and then did a subtract from time.  

     

    JeffC_0-1655909342345.png

     

     

    Thank you again,

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 227

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard