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 / Struggling with time f...
Power Automate
Unanswered

Struggling with time formats!

(0) ShareShare
ReportReport
Posted on by 7

I'm not a coder, but and Power Automate is just GUI enough for me to get myself in trouble.  I've got a flow, hacked from a template that is working for me except for the dang date and time format.  The flow grabs an Outlook365 calendar and posts a list of the day's events to a slack channel.  But unless people Speak UTC, it ain't pretty.  How on earth do I get it to look like "9:00am"?

 

Here are some expressions I've tried:

 

 

formatDateTime(triggerBody()?['Start'],'o'),11,5

formatDateTime('03/15/2018 12:00:00', 'yyyy-MM-ddTHH:mm:ss')

substring(formatDateTime(triggerBody()?['Start'],'o'),11,5)

formatDateTime(convertTimeZone(triggerBody()?['Start'],'GMT Standard Time',triggerBody()?['StartTimeZone']),'yyyy-MM-dd hh:mm')

 

 

but all end up throwing an error like this:

2021-09-02_0-21-51.png

Here's my flow in a nutshell:

TheChickening_0-1630568029676.png

So I'm suuuure it's something simple, but I've done searching.  Any help would be rewarded with a thank you.

 

-joe

 

Categories:
I have the same question (0)
  • eric-cheng Profile Picture
    5,171 on at

    Hi @TheChickening ,

     

    With date 

     

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

    ericcheng_0-1630570488205.png

     

    Without date

     

    formatDateTime(utcNow(),'hh:mm tt')

     

     

    ericcheng_1-1630570569844.png

     

    You can also use the Date Time connector if you dont want to muck around with expressions

     

    ericcheng_2-1630570621599.png

    ericcheng_4-1630570685955.png

    ericcheng_3-1630570678379.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

     

     

     

  • TheChickening Profile Picture
    7 on at

    That all sounds great, but where in the flow do I put all this?

  • TheChickening Profile Picture
    7 on at

    Anyone have some basic instruction here they can help me out with?

  • TheChickening Profile Picture
    7 on at

    Anyone at all know how to simply convert the time format 

    2021-09-10T15:30:00.0000000

    to 

    8:30am

    in the formulas above??

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard