Alteryx Designer Desktop Discussions

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

Parse date error in month range?

BigDataGeek
8 - Asteroid

I'm getting an error when trying to parse a date into 'month 'year'.  

 

ConvError: Formula (6): DATETIMEPARSE: Cannot convert "2017-09-15" to a date/time with format "%b-%y": Month number is out of range 1..12

 

Anyone know why or another way to convert YYYY-MM-DD to 'Month Year'?

 

Attached packaged workbook.

 

Thanks

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus
Try

DateTimeFormat([field],”%b-%y”)

Cheers,
Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Syarifhidayat
8 - Asteroid

hi @BigDataGeek,

 

Based on your workflow, actually no problem. But you need to edit something.

 

1- At Formula Tool, Just use formula below to update your current Date field

 

DateTimeFormat([Date],"%b-%y") 

Dcode
5 - Atom

Try using this,

DateTimeFormat(DateTimeParse([Input],"%Y-%m-%d"),"%B-%Y")

 

This worked for me. 

 

Alteryx wants us to convert date into ISO format of YYYYMMDD and then convert it to any other format, but it will be in string format.

 

For my case, an alternative approach worked, i changed all dates i was using to join to 1st of the month and then used those in reporting tool to show in year-month format later

Labels