Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Combine Two Columns Date

shawn_23
6 - Meteoroid

I need help combining the two columns Date Time Out and Date Time Out 22 when there is a null in Date Time Out with the Date Time Out 22 Information. 

4 REPLIES 4
BS_THE_ANALYST
15 - Aurora
15 - Aurora

@shawn_23 any chance you could include the dataset in your workflow? (if it's not sensitive information). Or provide a sample dataset. It's not included in your .yxmd file.

 

All the best,
BS

LinkedIN

Bulien
shawn_23
6 - Meteoroid

This is the data set and it came from http://www.planecrashinfo.com/database.htm 

binuacs
21 - Polaris

@shawn_23 Use the below formula to convert the given date in to Date Type

IIF(Contains([Date], '-'),DateTimeParse([Date],'%Y-%m-%d'),IIF(REGEX_Match([Date], '\d+.*\d{4}$'),DateTimePArse(REGEX_Replace([Date], '[^ -~]', ''),'%d%b %Y'),Null()))

 

binuacs_0-1678230720545.png

 

shawn_23
6 - Meteoroid

Wow thank you it worked. I appreciate the help my team could not figure this out either. 

 

Labels
Top Solution Authors