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.
SOLVED

Time Format

Hiteshp
7 - Meteor

Hello All,

 

I need to change m/d/yyyy  hh:mm:ss AM/PM to 24 hours time format like hh:mm:ss. The incoming data is in V_WString format

 

 

TimeNew Time
7/1/2024 12:01:00 PM12:01:00
7/1/2024 01:36:54 PM13:36:54
7/1/2024 02:44:23 PM14:44:23
7/1/2024 03:18:00 PM15:18:00

7/1/2024 04:00:59

PM

16:00:59
4 REPLIES 4
caltang
17 - Castor
17 - Castor

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Convert-String-to-Time/td-p/50...

Hope this helps

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
caltang
17 - Castor
17 - Castor

You could also consider text to columns and using space as a delimiter. Then use the 2nd column generated and use a multi field formula tool to convert it to time format.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Qiu
21 - Polaris
21 - Polaris

@Hiteshp 
A quick sample as below.
We can use DateTimeParse function and choose the Field Type to be Time

0813-Hiteshp.png

Hiteshp
7 - Meteor

Thank you for your help 

Labels
Top Solution Authors