We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
fireworks
SOLVED

Convert AM/PM to 24hour time

Grantham
6 - Meteoroid

Good day All 

Please can you help 

 

Data: 

Start Time End time
7:30 pm8:00 pm
11:45 am12:15 pm
11:30 pm12:30 am

 

 

How do i convert this data so that  to 24 hours

 

result 

 

Start Time End time
19:30:0020:00:00
11:45:0012:15:00
23:30:0000:30:00
1 REPLY 1
DataNath
17 - Castor
17 - Castor

Hey @Grantham, I'd use a Multi-Field Formula tool here to tackle both fields at the same time. Then we can just use the DateTimeParse() function to handle the incoming times, using their format:

 

DateTimeParse([_CurrentField_], '%I:%M %p')

 

DataNath_0-1661345924682.png

DataNath_1-1661345977386.png

 

More info on how these work here: https://help.alteryx.com/20221/designer/datetime-functions 

Labels
Top Solution Authors