In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more 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