Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Convert to AM/PM

mhtomines
7 - Meteor

Hi Team,

 

I would like to convert below date:

 

17 Aug 2022 12:41 PM
17 Aug 2022 02:24 PM
17 Aug 2022 08:23 AM

 

to desired:

 

2022-08-17 12:41 PM
2022-08-17 02:24 PM
2022-08-17 08:23 AM

 

Thank you!

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

@mhtomines one way of achieving this with the Formula tool would be to use the following expression:

 

DateTimeFormat(DateTimeParse([Input],'%d %b %Y %I:%M %p'),'%Y-%m-%d %I:%M %p')

 

DataNath_0-1660770165145.png

Qiu
21 - Polaris
21 - Polaris

@mhtomines 
@DataNath gives good sample flow. 
And if we  can try a different tool we can use the DateTime tool as below.

BUt still this page needs to be familaized with.

https://help.alteryx.com/20221/designer/datetime-functions

0818-mhtomines.PNG

Labels
Top Solution Authors