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 / Convert 12 Hour Time t...
Power Automate
Unanswered

Convert 12 Hour Time to 24 Hour

(0) ShareShare
ReportReport
Posted on by 2

Hey Guys,

 

First of all, apologies if I’m re-posting an already answered question as it seems like an obvious question to ask but I couldn’t find an answer to.

 

In my PAD I have a %Time% variable which is populated by the time:

 

‘8:15 AM’

Or

’10:25 PM’


I simply want this variable converted to a 24hr Format - hh:mm

 

can someone please advise how this can be done? 

Many Thanks! 

I have the same question (0)
  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    You just need two actions; one to convert to datetime data type, and one to convert to your desired format. If you need a different format, you can construct one from the information found on this page: Convert DateTime to text - custom date formats | Microsoft Learn

    Henrik_M_0-1665225141998.png

     

    Henrik_M_1-1665225157915.png

     

    Henrik_M_2-1665225175256.png

     

    Henrik_M_3-1665225190819.png

     

     

  • Suggested answer
    AdyG Profile Picture
    50 on at
    Hello,
     
    I needed to get the time part in 24hour format, so here's what I did:
     
     
     Next crop the text to get 'text' after 'T' which is the time in 24hour format:
     
     
     
     
     Thanks.

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 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard