Start Free Trial

Alteryx Designer Desktop Discussions

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

Remove year from yyyy-mm-dd

ShantanuDagar
8 - Asteroid

Hey,

 

I have a column with yyyy-mm-dd (Name) format rows.

 

Example: 2022-11-20 Alteryx Developer

 

I need to change it to 20/11 Alteryx Developer

i.e. dd/mm (Name)

 

Any idea how to do?

6 REPLIES 6
Felipe_Ribeir0
16 - Nebula

Hi @ShantanuDagar 

 

You can use this formula:

 

datetimeformat([Name], "%d/%m")

 

 

 

 

 

davidskaife
14 - Magnetar

Hi @ShantanuDagar 

 

Here is one way of doing it:

 

DavidSkaife_0-1670925524935.png

 

Use a Text to Columns tool to split into two columns on a space:

DavidSkaife_0-1670925646765.png

 

Then a Formula tool to perform the required changes and stitch the data back together:

DavidSkaife_1-1670925680159.png

 

 

 

binu_acs
21 - Polaris

@ShantanuDagar One way of doing this

 

binuacs_0-1670926013662.png

 

ShankerV
17 - Castor

hi @ShantanuDagar 

 

One way of doing this, 

 

ShankerV_0-1670926174930.png

 

Regex:  (.{10})(\s.+)

 

ShankerV_0-1670926261574.png

 

Formula: datetimeformat([RegExOut1],"%d/%m")+[RegExOut2]

 

ShankerV_1-1670926290758.png

 

 

 

 

 

Many thanks

Shanker V

 

ShantanuDagar
8 - Asteroid

Perfect guys for quick solutions, all works but using @davidskaife method. 

EN6924
10 - Fireball

EN6924_0-1670932961954.png

 

Labels
Top Solution Authors