community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

Parse date error in month range?

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

Alteryx Certified Partner
Alteryx Certified Partner
Try

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

Cheers,
Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Highlighted
Alteryx Partner

hi @Shap,

 

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") 

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