Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

YYYY/MM/DD to MM/DD

MonaAlmutairi
Asteroide

Hi everyone,

 

I would like to convert some date in the format YYYY/MM/DD to be only month and days -> MM/DD

 

and what about if I wanted another format such as 01-Jan?

 

 

I appreciate your support!

Thank you.

2 RESPOSTAS 2

Hi @MonaAlmutairi ,

 

First convert the string "YYYY/MM/DD" to Date type "YYYY-MM-DD" with DateTimeParse function

and then you can use DateTimeFormat function to format it as you like.

 

Check this help page. https://help.alteryx.com/20223/designer/datetime-functions

 

Sample Formula

DateFormat = DateTimeParse([Date],"%Y/%m/%d")

MM/DD = DateTimeFormat([DateFormat],"%m/%d")

dd-mmm = DateTimeFormat([DateFormat],"%d-%b")

 

Output

Yoshiro_Fujimori_0-1683779542944.png

 

Good luck.

MonaAlmutairi
Asteroide

@Yoshiro_Fujimori Thank you!! very comprehensive explanation! 

Rótulos