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

Alteryx Designer Desktop Discussions

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

Date format required : 2025-NOV

Meghnagupta
8 - Asteroid

I require date in below format. Is it possible doing in Alteryx formula?

Format required: 2024-JAN

Current format: 202401

4 REPLIES 4
DataNath
17 - Castor
17 - Castor

Hey @Meghnagupta, you can use the following expression in a Formula tool:

 

Uppercase(DateTimeFormat(DateTimeParse([Input],'%Y%m'), '%Y-%b'))

 

Just replace [Input] with your actual data field.

Meghnagupta
8 - Asteroid

@DataNath  This formula is not giving any result

DataNath
17 - Castor
17 - Castor

Can you tell me why? Any particular error you're getting? If your incoming data i.e. in format 202401 is in numeric format, you'll need to convert it to a string first. For that you can use:

 

Uppercase(DateTimeFormat(DateTimeParse(ToString([Input]),'%Y%m'), '%Y-%b'))
Meghnagupta
8 - Asteroid

Wohho, thank you. I forgot to convert it to string initially. @DataNath 

Labels