Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

removing extra numbers at the end of a date

h_lentz
5 - Atom

The date in my column looks like this:  20211105 000000

 

How can I get rid of the 5 extra 0's at the end?

7 REPLIES 7
Felipe_Ribeir0
16 - Nebula

Hi @h_lentz 

 

You could use this formula LEFT([DateField], 8)

 

Felipe_Ribeir0_0-1668721164886.png

 

gabrielvilella
14 - Magnetar

If you want to get rid of extra zeros you can use this expression on a formula tool:

Trim(TrimRight([FieldName],'0'))
binuacs
20 - Arcturus

@h_lentz One way of doing this

 

binuacs_0-1668721620421.png

 

KrishnaChithrathil
11 - Bolide

@h_lentz 

KrishnaChithrathil_0-1668762144386.png

 

Felipe_Ribeir0
16 - Nebula

Hi @h_lentz 

 

It worked?

ShankerV
17 - Castor

Hi @h_lentz 

 

One way of doing this!!!!

 

ShankerV_0-1669045008662.png

 

 

Input: 

ShankerV_1-1669045031220.png

 

Step 2: Regex

ShankerV_2-1669045052514.png

 

Many thanks

Shanker V

 

 

 

DenisZ
11 - Bolide

Please find attached solution

 

DenisZ_0-1669047872418.png

 

 

 

Labels