Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

YYYY/MM/DD to MM/DD

MonaAlmutairi
8 - Asteroid

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 REPLIES 2
Yoshiro_Fujimori
15 - Aurora

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
8 - Asteroid

@Yoshiro_Fujimori Thank you!! very comprehensive explanation! 

Labels
Top Solution Authors