Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Date Conversion

KamenRider
11 - Bolide

Hi,

 

My excel date shows like this format.

 

Date.PNG

But when I run it in Alteryx it shows like this in VWString format. 

 

Date2.PNG

Tried using the date tool but it gives me a NULL value. Can someone help me please on how to convert it this type of format

 

Date.PNG

 Attaching excel for your reference.

 

Thanks,

Kamen

 

 

 

 

 

 

 

14 REPLIES 14
Hugo_Miranda
7 - Meteor

Kamen, 

 

You'll need to convert your input to a Datetime data type to preserve the incoming date format. You can do this using a Select Tool.

 

Hope this helps.

__PRESENT

KamenRider
11 - Bolide

Hi @Hugo_Miranda 

 

The problem is that there is no DateTime or Date data type in the selection.

 

Kamen

DataNath
17 - Castor
17 - Castor

@KamenRider, use the following Formula expression:

 

ToDateTime([ASOFDATE])
shancmiralles
11 - Bolide

hi @KamenRider .. your file is in xlsx and when i download it it shows me YYYY-MM-DD part of your data in alteryx.. however.. the format changing when fed to alteryx we had that.. i change the file from xlsx to csv...  not sure if it will work for you but worth the shot. goodluck!! :)

KamenRider
11 - Bolide

Hi @DataNath 

 

Got this error:

 

ERROR DATE.PNG

Please advise.

 

Kamen

KamenRider
11 - Bolide

Hi @shancmiralles 

 

Thanks for your response however, converting it to csv is not a requirement. It should be in xlsx format.

 

Kamen

DataNath
17 - Castor
17 - Castor

@KamenRider check your other expressions. That error is linked to your first expression as stated - you're not using a '+' and don't have 50 characters in the expression you're showing. 

KamenRider
11 - Bolide

Hi @DataNath 

 

I'm sorry but I can't the reason of the error. I don't special characters in the formula and I am a kind of confuses why using + sign.

 

Please advise.

Kamen

DataNath
17 - Castor
17 - Castor

@KamenRider can you show your full screen including all expressions etc?

Labels
Top Solution Authors