Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

String to Date

tiverson
8 - Asteroid

I have data that looks like a date, but is a string.

When I try to convert it to a date, I receive a null.

I have tried 3 or 4 different text to string actions but none return a value.

What am I doing wrong?

Thanks

tiverson_0-1646144545992.png

 

tiverson_1-1646144560451.png

tiverson_2-1646144584109.png

tiverson_3-1646144603270.png

 

11 REPLIES 11
atcodedog05
22 - Nova
22 - Nova

Hi @tiverson 

 

The format you need to use is

 

atcodedog05_0-1646144830955.png

 

Hope this helps : )

 

binuacs
20 - Arcturus

@tiverson 

binuacs_0-1646144873978.png

 

RolandSchubert
16 - Nebula
16 - Nebula

Hi @tiverson ,

 

you can use a Formula tool and the function DateTimeParse. Create a new column and set the type to "Date".

 

Formula should be: DateTimeParse([Name], '%Y_%m_%d')

 

Let me know if it works for you.

 

Best,

 

Roland

 

 

MatthewBr
Alteryx Alumni (Retired)

MatthewBr_0-1646144965643.png

 

MatthewBr
Alteryx Alumni (Retired)

try that version worked for me.

MarqueeCrew
20 - Arcturus
20 - Arcturus

@tiverson ,

 

You've got lots of responses for your post with help from @MatthewBr , @RolandSchubert ,  @binuacs  and @atcodedog05 .  I personally avoid the DATE TIME TOOL.  I like the DateTimeParse() function solve, but to keep it simple, here is the easiest way:

 

ReplaceChar([Name],"_",'-')

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
atcodedog05
22 - Nova
22 - Nova

Hi @tiverson 

 

I agree with @MarqueeCrew replace would be the best option that was my first thought too. But I wanted to show you what you might be doing wrong and how you can fix it 🙂

 

Happy to help : )

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @tiverson 

Cheers and have a nice day!

tiverson
8 - Asteroid

Thank you so much to everyone for all your help!

Labels