Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Date Conversion not working

George_Fischetti
8 - Asteroid

Hi folks - I'm trying to convert a date in my workflow that is coming from an Excel source as 20210501.   Alteryx is bringing the field in a a V_String.   

I was trying to use a formula tool with the ToDate() function but my output is coming out Null.  Is there a better way to handle this?

 

Thanks!  George

4 REPLIES 4
Garabujo7
Alteryx
Alteryx

Hello @George_Fischetti ,

 

There is a way easier way to do it:

 

The DateTime block, that it in the parse category.

 

Garabujo7_0-1631558348622.png

 

Also you could look into the one tool example to see how it is used.

 

Here are the options:

 

Garabujo7_1-1631558418860.png

 

 

Hope this helps.

 

Luke_C
17 - Castor

Hi @George_Fischetti 

 

Here's two different approaches, one with the datetime tool mentioned above, and one with the date time parse function.

 

I suggest bookmarking this page, it is invaluable when working with dates and alteryx date functions: DateTime Functions | Alteryx Help

 

Luke_C_0-1631558626886.png

 

 

George_Fischetti
8 - Asteroid

Thank you both for your input - the formula tool with the datetimeparse function worked best!!!

Tyro_abc
11 - Bolide

Hi

Try this...

Tyro_abc_0-1631561177721.png

 

Labels