cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
walking999
Regular Visitor

Convert 12 Hour Time to 24 Hour

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! 

1 REPLY 1
Henrik_M
Super User
Super User

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

 

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,316)