Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Remove Leading Zeroes in days and months

BautistaC888
8 - Asteroid

Hello:

I need to remove the leading zeroes from my dates.
For example (the dates are dd/mm/yyyy in string format):

BautistaC888_0-1632151090348.png

And i need:
2/1/2020 First line.

 

Thank you.

1 REPLY 1
atcodedog05
22 - Nova
22 - Nova

Hi @BautistaC888 

 

Here is how you can do it.

 

Formula:

REGEX_Replace([Field1], "0?(\d+)/0?(\d+)/(\d+)", "$1/$2/$3")


Workflow:

atcodedog05_0-1632151392179.png

 

Hope this helps : )

Labels
Top Solution Authors