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.
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