In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
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