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.

Change the string to Date format

nirvapatel1998
7 - Meteor

Hello, 

Can someone help guide on how I can change the string format of date to date format. 

 

Input: yyyymmdd

Output: mm/dd/yyyy

 

TDATEOUTPUT

20220221

02/21/2022
2022012601/26/2022
2023022102/21/2023
2023010301/03/2023

 

TDATE is my input and OUTPUT is the output I am expecting. The data type for OUTPUT should be "Date"

 

Thank you. 

2 REPLIES 2
alexnajm
19 - Altair
19 - Altair

Hi @nirvapatel1998,

 

for clarity, Alteryx only stores dates as a Date data type in the ISO format - YYYY-MM-DD. If you want it to be formatted as MM/DD/YYYY coming out of Alteryx, it will have to stay as a string. Is this alright?

 

Otherwise if you want to store it as a Date ans indicated, you can change the display format on the Excel side if you want it to stay as a Date data type in Alteryx. 

-Alex

binu_acs
21 - Polaris

@nirvapatel1998 One way of doing this. as @alexnajm said mm/dd/yyyy is not a valid date format in Alteryx 

binuacs_0-1677016112339.png

 

Labels
Top Solution Authors