ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Convert yyyy-mm-dd to mmm-yyyy format

psravani
5 - Atom

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
binu_acs
21 - Polaris

@psravani 

DateTimeFormat(toDate([period]),"%b-%Y")

Labels
Top Solution Authors