Start Free Trial

Alteryx Designer Desktop Discussions

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

Parsing a date column into 2 columns

theglamcoder
5 - Atom

 

Hi!

I am a bit stuck on splitting this into 2 columns:

Original: Feb 3, 2021 12:00:00 EST

 

Desired Output: Feb - 3 - 2021 in its own column and 12:00:00 EST in second column

I tried using text to column and reg expression but can't figure it out. I am new to Alteryx too

 

 

 

theglamcoder_0-1687290332597.png

 

4 REPLIES 4
Clifford_Coon
11 - Bolide

Hi @theglamcoder ,

 

Use regex / parse:   (\w*\s\d*,\s\d{4})\s(.*)

 

regex101: build, test, and debug regex   is a good resource to test / learn regex.

 

Annotation 2023-06-20 160947.jpg

binu_acs
21 - Polaris

@theglamcoder Another regex method

binuacs_0-1687294989605.png

 

ScottLewis
11 - Bolide

A Formula version if you're worried about reading/maintaining the RegEx. 

nagakavyasri
12 - Quasar

Another approach:

Screenshot 2023-06-22 180542.png

Labels
Top Solution Authors