Alteryx Designer Desktop Discussions

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

How to get desired Date/DateTime format using DateTime tool?

AKPWZ
8 - Asteroid

Hi everyone, I want to convert "Date" column to "Date-Format-1", "Date-Format-2" & "Date-Format-3".


I'm using DateTime tool but it's not working for me.
Here what I'm trying to do by using the custom function of DateTime tool.
Please help me to get the expected result. Thank you!!
Attaching screenshot.

 

AKPWZ_0-1673849081587.pngAKPWZ_1-1673849126754.png

 

4 REPLIES 4
JosephSerpis
17 - Castor
17 - Castor

Hi @AKPWZ I have attached a workflow that formats the dates as expected.

 

Datetimeformat_16012023.JPG

 

The following link has the specifiers for you to match your date time format to parse correctly in Alteryx.

AKPWZ
8 - Asteroid

Thank you @JosephSerpis this formula is working for me. I think I have to use Formula tool instead of DateTime tool. 

JosephSerpis
17 - Castor
17 - Castor

Hi @AKPWZ you can use the datetime tool however you would need multiple of them to achieve the same desired affect. As this is a two stage process first you need to parse your date into a format Alteryx recognises YYYY-MM-DD HH:mm:ss then you can format the date to whatever format you require. In the formula tool you can do this in a single expersion per format.

 

Datetimeformat_16012023_v1.JPG

AKPWZ
8 - Asteroid

Yes @JosephSerpis I totally agreed. Once again thanks alot!! 

Labels