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.

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