Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start 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
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