Alteryx Designer Desktop Discussions

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

How to change the date formate

Sshasnk
8 - Asteroid

I have a date format in which yyyy-mm-dd which I have to change it into mm/dd/yyyy. I want to do this to multiple columns So I don't wanna use the datetimeParse tool

 

Example

 

DateDate1Date3
2022-12-312021-12-312020-12-31

 

I tried formula to format but all they were giving me error

 

Output:

DateDate1Date3
12/31/202212/31/202112/31/2020
6 REPLIES 6
ShankerV
17 - Castor

Hi @Sshasnk 

 

This can be achieved using Formula tool.

 

Many thanks

Shanker V

Felipe_Ribeir0
16 - Nebula

Hi @Sshasnk 

 

You can use this formula

datetimeformat([Date], "%m/%d/%Y")

 

ShankerV
17 - Castor

Hi @Sshasnk 

 

I tried formula to format but all they were giving me error

 

You are getting the error because the input is in Date format and the Output you are trying to store in the same column is not date format which is dd/mm/yyyy. 

 

Hence you need to store in the temp column and rename using select tool or Dynamic select tool.

 

Many thanks

Shanker V

ShankerV
17 - Castor

@Sshasnk 

\

Please find the below expected solution.

 

ShankerV_1-1671188554724.png

 

 

ShankerV_0-1671188530447.png

 

Christina_H
14 - Magnetar

Alteryx will only display date fields in the format yyyy-mm-dd.  To change the format you need to convert it to a string field.  Since you're converting multiple dates, you can use a multi-field formula tool to convert them all at once.

Christina_H_1-1671188584641.png

 

PanPP
Alteryx Alumni (Retired)

Hi @Sshasnk 

 

I have provided a sample WF that achieves your output.

 

Labels