Alteryx Designer Desktop Discussions

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

How would I extract the date from a a text string if the date format is not consistent?

robertcox
6 - Meteoroid

I have a set of 1,000+ records and they have a "Source" field that contains the record origin and date, but the date is not in a consistent format throughout the dataset.  I have tried using RegEx and Data Cleansing, but haven't been successful in extracting the date only from all of them.  Below is an exampele of what my fieldAny advice?  Thanks in advance!

robertcox_0-1608073094517.png

 

5 REPLIES 5
MarqueeCrew
20 - Arcturus
20 - Arcturus

@robertcox ,

 

 the last word is your date:

 

getword([source],Countwords([source])-1)

 

 that's one way. 

cheers,

 

 mark

Alteryx ACE & Top Community Contributor

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

Hi @robertcox 

 

Please check the below and let me know if it works. It seems that no matter how many digits you have, it will always include "/". Cheers!

 

christine_assaad_0-1608074060744.png

 

Tyro_abc
11 - Bolide

Hi

@robertcox 

Try this

arundhuti726_1-1608083771092.png

 

 

 

robertcox
6 - Meteoroid

That is exactly what I am looking for!  Thanks for the advice!

ChiragPatel
5 - Atom

That's what I was look for as well. Thanks for sharing!

Labels