Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

concat string columns to create a date variable

himam
6 - Meteoroid

Hello everyone, 

I have the first 3 columns as shown below and what to create the 4th column i.e. EVALUATION_DATE2

EVAL_DTEVAL_MOEVAL_YREVALUATION_DATE2
510202210/03/2022
313202111/03/2021

 

I tried the following but got the error saying "EVALUATION_DATE2: "3/31/2021" is not a valid Date"

 

himam_0-1673997046151.png

Thanks in advance!

7 REPLIES 7
BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

Hi! To have the date as a date datatype, it needs to be in the following format: yyyy-mm-dd. 

 

See picture below:

BS_THE_ANALYST_0-1673998067844.png

You could solve your problem by changing your Evaluation_Date2 datatype to V_WSTRING and then connecting the DateTime tool to it. You'll be able to format it correctly there! :-) 

All the best,
BS

LinkedIN

Bulien
BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

try this workflow out, it's one way to do it. Attached it workflow

BS_THE_ANALYST_0-1673998385212.png

 

All the best,
BS

LinkedIN

Bulien
BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@himam another possible way: you can actually use the DateTime tool functionality inside the formula tool 

 

BS_THE_ANALYST_0-1673998790086.png

 

All the best,
BS

LinkedIN

Bulien
Sarreddy
9 - Comet

@himam 

Sarreddy_0-1674007435027.png

 

Sarreddy
9 - Comet

@himam 

Sarreddy_0-1674008532898.png

 

JenzEkan
8 - Asteroid

g

grazitti_sapna
17 - Castor

@himam , Please find my response to your problem

Alteryx Supported Date Format: YYYY-MM-DD

 

gahlotpooja_0-1674019496510.png

 

Sapna Gupta
Labels
Top Solution Authors