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 / Formatting Date And ti...
Power Automate
Answered

Formatting Date And time in MS Flow

(2) ShareShare
ReportReport
Posted on by

I am running into a problem when trying to get the date/time out of a column. I need it to display what is in the column and cant figure out how to format it in Flows. Attached is the issue and my flow. I need it to read the date/time in a mm/dd hh:mm AM/PM. any help will be greatly appreciated!

Flow 2.PNGFlow 1.PNG

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

    @Anonymous- give this a try:

     

    I used this format ina an expression:

    formatDateTime(utcNow(),'MM/dd hh:mm tt')
     
    Which produced a date/time string that looks like this:
    07/20 08:08 PM
     
    DateFormat.jpg
     
    If this works for you, please mark you Post as Solved.
     
    Scott

     

  • Community Power Platform Member Profile Picture
    on at

    Worked like a charm! Thank you so much!

  • Community Power Platform Member Profile Picture
    on at

    It worked once and then quit and went back to sending the way it was 😞

  • Verified answer
    jaylou Profile Picture
    241 on at

    HI Kamel,

    If you are still having an issue with formatting the date, have you tried to use "Convert Timezone"?  I convert all dates before I send them in an alert.  There are many formating options for you to choose.

     

    ConvertTimeAction.jpg

     

    Hope this helps,

    Joe

  • Community Power Platform Member Profile Picture
    on at

    Greetings

     

    I tried this :

    formatDateTime(utcNow(), 'MM/dd hh:mm:tt')

     

    To update dates and times for Form submited for approval , however it shows todays's date and I am trying to show the dates from the form submitted , how can I format this dates so it shows the right format when email is received for approval ?

    Approval email example vs form submitted

     

     

  • RBoneck Profile Picture
    415 on at

    formatDateTime( [your date here] , 'MM/dd hh:mm:tt')

  • Community Power Platform Member Profile Picture
    on at

    I'm building a flow that would notify certain users when dates are changed. I did the following:
    1. I created 2 hidden fields: Old Start date and Old End date (Date and Time fields in Sharepoint Events List).
    2. In my flow, I convert all four fields (Old and New Start dates and End Dates) from UTC to NZST with format mm/d/yyyy h:mm AM/PM.
    3. I check:
       A. New and Old Start dates are equal, and
       B. New and Old End Dates are equal
    If false, Sharepoint sends an email to users that these dates have been changed.
    4. The item is updated to populate the Old Start and End dates with the values from the New Start and End dates.

     

    My problem is whether I use the New or the converted values to update the Old value fields, the values returned to Sharepoint turn out differently from the unconverted values.

    Is there any way to fix this?

  • Community Power Platform Member Profile Picture
    on at

    convert time zone .jpg

     

    This is how I fixed time zone in my flow .

    1. Started my flow  with the action, in this case is when an item is created in sharepoint list ,

    2. I added Convert time zone action after one for the start date and another for the End time

    Here is how it looks

     

     

  • Community Power Platform Member Profile Picture
    on at

    Thanks, but strangely, it's working now. 

     

    I removed all the conversions and just used the fields themselves. I think there's just a delay in displaying the changes to the Old and New Start dates in Sharepoint. And I think the only mistake I had in the first place was having "Date and Time" format for the New dates, and the "Date only" format for the Old Dates. After aligning those formats, I started adding the conversions and other stuff in it and the delay didn't help either. 

  • Community Power Platform Member Profile Picture
    on at

    I'm using the Convert Time Zone action but it does translate the days names from my language to english automatically.........

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard