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 / Formating date in an e...
Power Automate
Answered

Formating date in an email dynamic content?

(0) ShareShare
ReportReport
Posted on by 40

Hello,

here is my problem, how to change the format of a date in the "Start Time" & "End Time" dynamic content added to an email?

This so that the format is correctly readable by the person who receives the mail?

 

pa01.png

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Igerarts  you can use below expression to format date and time. Use this expression in the Dynamic content -> Expressions. Replace <Start Time> by selecting the Start Time value from Dynamic Content in the expression.

    formatDateTime(<Start Time>, 'M/dd/yyyy h:mm tt')

     

  • Igerarts Profile Picture
    40 on at

    @annajhaveri thanx for help,

     

    tried this 

    formatDateTime(items('Appliquer_à_chacun')?['start/Date'],'dd/MM/yyyy')

     

    but return me an error 

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Igerarts  can you please share what error are you facing?

  • Igerarts Profile Picture
    40 on at

    So no error in the expression for the 2 expressions

     

     

    formatDateTime(items('Appliquer_à_chacun')?['start/Date'],'dd/MM/yyyy')
    
    formatDateTime(items('Appliquer_à_chacun')?['end/Date'],'dd/MM/yyyy')

     

      

     

    but after testing got

     
    ActionBranchingConditionNotSatisfied. The execution of template action 'Envoyer_un_e-mail_à_partir_d’une_boîte_aux_lettres_partagée_(V2)_2' skipped: the branching condition for this action is not satisfied.

     

     

  • Igerarts Profile Picture
    40 on at

    beforebeforeafterafter

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Igerarts  not able to see exact error, do you see any errors on right side of the flow run screen?

  • Igerarts Profile Picture
    40 on at

    Here's it

     

    InvalidTemplate. Unable to process template language expressions in action 'Envoyer_un_e-mail_à_partir_d’une_boîte_aux_lettres_partagée_(V2)_2' inputs at line '0' and column '0': 'The template language function 'formatDateTime' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'.
  • Verified answer
    Igerarts Profile Picture
    40 on at

    @annajhaveri 

     

    found it

     

    formatDateTime(items('Appliquer_à_chacun')?['start'],'dd/MM/yyyy')

     

    I have specified start/date when it failed, try just with start (as the original value for 'items') and it work.

     

    ths for time and help

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 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard