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

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
Top Solution Authors