In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more 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