In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
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