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 / Formardatetime sending...
Power Automate
Answered

Formardatetime sending email with different data from form

(0) ShareShare
ReportReport
Posted on by

Greetings 

 

I tried to format date and time from the email received from approval, however, the dates and times are different from the form submitted for approval

 

I am happy with the format however I want to know what am I missing as the information displayed is not the same

 

formatDateTime(triggerBody()?['Start_x0020_Date_x0020__x0026__x'],'MM/dd hh:mm:tt')

 

 

Categories:
I have the same question (0)
  • AlanPs1 Profile Picture
    2,471 on at

    Hi @Anonymous 

    Here is a nice way to test these things and the results from what I have done below:Capture-327.png

    Results:Capture-328.png

     

    Capture-329.png

    If you recreate this and bring in a non UTC format it looks to give diferent results. This may shed some light on the results you are getting. What I normally do with non standar date formats is convert them to the long format before formatting them.

     

    More information on Date and time functions here - https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#date-and-time-functions

     

    If you have found my post helpful, please mark thumbs up.

    If this post has solved your problem, please click "Accept as Solution".

    Any other questions, just ask.

    Thanks, Alan

  • Community Power Platform Member Profile Picture
    on at

    Hi

     

    I tried different formats and like MM/dd/yyy hh:mm:tt how ever the data placed in form does not resemble what is shown in the approval email. How can I transfer that information to the email ? see example below of what its happening

     

    I am getting :

     

    From;

    03/07/2019 07:00:PM 

    To : 

    03/07/2019 08:00:PM

     

    when the information entered  in form is : ( so when this information is entered the times are inaccurate)

    Start Date and time : 3/7/2019    11:00 AM

    End Date and time :   3/7/2019    12:00 PM

     

    USING THIS :

    formatDateTime(triggerBody()?['Start_x0020_Date_x0020__x0026__x'],'MM/dd/yyyy hh:mm:tt ')

    formatDateTime(triggerBody()?['End_x0020_Date_x0020__x0026__x00'],'MM/dd hh:mm:tt')

     

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    I was able to find the solution

     

    Under expresion :

     

    convertFromUtc(triggerBody()?['End_x0020_Date_x0020__x0026__x00'],'Pacific Standard Time','MM/dd/yyyy hh:mm:tt')

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 305 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 155 Most Valuable Professional

Last 30 days Overall leaderboard