Convert yyyy-mm-dd to mmm-yyyy format
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
psravani
5 - Atom
‎08-11-2024
11:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi All,
In alteryx formula tool, I am converting the date format of the Period column from the current yyyy-mm-dd to MMM-YYYY in the excel output using the following:
if IsString([Period])then
[Period]else datetimeformat(DateTimeParse([Period],"%Y-%m-%d"),"%b-%Y")
endif
The if condition is to include dates that have been mentioned as "Ongoing" in the Period column
But the output date still shows in YYYY-MM-DD format only in the excel output.
Please help!
Thanks,
Sravani
1 REPLY 1
binuacs
21 - Polaris
‎08-12-2024
12:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
DateTimeFormat(toDate([period]),"%b-%Y")
