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

DIGITS CONVERT TO DATE

dunkindonut7777
8 - Asteroid

Hi, How can 6 digits in a field (string) will be converted into date format?

 

For example:

 

DATE:

201119

 

And I want to convert it into

11/19/2020

 

Can you help me out with this one please?

5 REPLIES 5
MarqueeCrew
20 - Arcturus
20 - Arcturus

@dunkindonut7777 ,

 

 I'd try:

 

datetimeparse([date],"%y%m%d")

 

 that should work.  You should try references date specified in the help pages for more help.

 

 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 @dunkindonut7777 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1606103071764.png

 

Formulas:

atcodedog05_2-1606103282594.png

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

dunkindonut7777
8 - Asteroid

thanks to this!

dunkindonut7777
8 - Asteroid

thanks to this one!!

atcodedog05
22 - Nova
22 - Nova

Hi @dunkindonut7777 

 

If we were able to help you solve your usecase please acknowledge by marking the posts as solution 🙂

 

Happy to help🙂

Labels