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 / Formatdatetime in powe...
Power Automate
Unanswered

Formatdatetime in powerautomate

(0) ShareShare
ReportReport
Posted on by 347

I have a date/time in a sharepoint list.  I have a power automate setup to send an email when new doc is created.  I want the date/time in the email.  I've used this statement 

 

formatDateTime('Date_x0020_of_x0020_MEeting','MM/dd/yyyy hh:mm')
 
When I test the flow it gives me an error on the email saying the value provided for date time string 'Date_x0020_of_x0020_MEeting' was not valid. The datetime string must match ISO 8601 format.
 
IDEAS?  I
I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    In Power Automate Desktop, we have "convert date to text" and you can convert it to a custom format "MM/dd/yyyy hh:mm" to a variable %Date_String%.  Then you can use the variable %Date_String% in the email.

  • Yedukondalu Profile Picture
    2 on at

    Here i have two doubts,
    1.How can i get only date from above value("MM/dd/yyyy hh:mm") with out any time value.
    2.How can i change a date formate from MMddyyyy to MM/dd/yyyy.

    Please anyone help me this... Thanks

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    You can take any text format to a date format using “convert text to datetime” and you can convert any date format (regardless of it is has time or not) to text. 

    so, if you have a text format MMddyyyy hh:mm and you want it to be in a text format MM/dd/yyyy, change it to date and then to your next text format. 

    ex.

    Set (text) variable as 05/22/2023 12:45 as %Today_Text%
    Convert Text %Today_Text% to Datetime as %Today_Date%

    Convert Datetime %Today_Date% to Text in custom form MMddyyyy as %Formatted_Date%

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard