Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

Alteryx Designer Desktop Discussions

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

How to remove extra space from date column?

Isha_Gupta
8 - Asteroid

Hi

 

I have imported a text file in fixed width file format.

 

There are 3 columns of date. Right now they are in string data type.

 

Dates follow: mon dd YYYY format

Jul 13 2022 example

 

Now If the date is just single digit, there is extra space in between date and month...

 

Like: Aug  5 2021

 

How to remove this extra space if date is single digit. And convert this into date format so that no readability issues come with that space.

 

Thanks

3 REPLIES 3
Martyn
9 - Comet

Use a Date Time tool with Custom configuration of..... Mon d yyyy

FinnCharlton
13 - Pulsar

Hi @Isha_Gupta , using the DateTimeParse formula can put this into a date format (and data type) for you:

FinnCharlton_0-1677598693153.png

FinnCharlton_1-1677598700237.png

Hope this helps!

 

Deano478
12 - Quasar

Hey @Isha_Gupta just use a data cleansing tool like so:

 

Deano478_0-1677598840804.png

 

Labels