Start Free Trial

Alteryx Designer Desktop Discussions

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

Converting multiple date fields (including string types) to a YYYYMMDD date format

jakemiroquai
7 - Meteor

Hi there!
I have been doing some data cleaning on an excel file and I have been using the DateTime tool to change multiple Date fields into a YYYYMMDD format but I was wondering if it was possible to change multiple fields including those that are V_String type fields but are still resembling a YYYY-MM-DD format into YYYYMMDD date type format? I was thinking there has to be a better way of doing this instead of having like 10 DateTime tools, and having to select the relevant + newly generated columns after.
I am still very new to Alteryx and any help would be appreciated. If anyone could share some material on hopefully looking for my answers there, that would be great too. Cheers

2 REPLIES 2
Peachyco
11 - Bolide

You can use the Multi-Field Formula Tool for this.

 

Note that in the below configuration, we have to "Select All Types of Fields" because you have indicated that you need to target a mix of Date and String fields:

Alteryx - jakemiroquai Convert multiple dates a.png

The data you see in the screenshot above is my sample input. At the end of the workflow, you get this:

Alteryx - jakemiroquai Convert multiple dates b.png

 

Oh, but if you want to retain the old columns and create new ones, you have to tick "Copy Output Fields and Add", like so:

Alteryx - jakemiroquai Convert multiple dates c.png

jakemiroquai
7 - Meteor

This actualy worked! Thank you so much!!

Labels
Top Solution Authors