ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Remove year from yyyy-mm-dd

ShantanuDagar
アステロイド

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件の返信6
Felipe_Ribeir0
ネビュラ

Hi @ShantanuDagar 

 

You can use this formula:

 

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

 

 

 

 

 

davidskaife
マグネター

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
ポラリス

@ShantanuDagar One way of doing this

 

binuacs_0-1670926013662.png

 

ShankerV
キャスター

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
アステロイド

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

EN6924
ファイアボール

EN6924_0-1670932961954.png

 

ラベル
トップのソリューション投稿者