Free Trial

Alteryx Designer Desktop Discussions

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

MID,LEFT,RIGHT functions in Alteryx | Regx

Sarath27
5 - Atom

Hi All,

 

StartDate - 20211223

 

I want this to be transformed into a date as "23/12/2021".

 

Pls suggest me the formula or regex to bring this.

 

Thanks.

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @Sarath27 you would need to use a combination of datetime parse and dateformat formulas to achieve your results.

 

Dates_29052024.png

DataNath
17 - Castor
17 - Castor

Hey @Sarath27, you can use the following in a Formula tool:

 

 

DateTimeFormat(DateTimeParse([StartDate], '%Y%m%d'),'%d/%m/%Y')

 

Deano478
12 - Quasar

@Sarath27 to add to @DataNath  and @JosephSerpis solutions if you use this format the value will need to be stored as a String

Labels
Top Solution Authors