SOLVED
Date format required : 2025-NOV
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Meghnagupta
8 - Asteroid
‎12-13-2024
06:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I require date in below format. Is it possible doing in Alteryx formula?
Format required: 2024-JAN
Current format: 202401
Solved! Go to Solution.
Labels:
4 REPLIES 4
17 - Castor
‎12-13-2024
06:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
‎12-13-2024
07:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@DataNath This formula is not giving any result
17 - Castor
‎12-13-2024
07:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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'))
‎12-13-2024
07:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Wohho, thank you. I forgot to convert it to string initially. @DataNath
