Alteryx Designer Desktop Discussions

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

Date Formatting

rebecca_shopp
5 - Atom

I have a date in this format 20230309. I would like to change the formatting so that the month and year are showing. My ultimate goal is to use the Summarize tool to group all the dates by month and year.  I've tried various formulas without any success. 

I have also tried changing the format of my date from VString to DateTime and that did not solve the problem. 

 

Thank you!

4 REPLIES 4
MarqueeCrew
20 - Arcturus
20 - Arcturus

Hi @rebecca_shopp ,

 

The SIMPLE solution is:

Left([YourDateField],6)

 

This gets you 202303.  That should be easily sorted for you.

 

Cheers,

 

Mark 

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
nagakavyasri
12 - Quasar

Screenshot 2023-06-27 121626.png

rebecca_shopp
5 - Atom

Thank you, sadly this did not solve the issue for me. 

nagakavyasri
12 - Quasar

The input '20230309' needs to be converted to Date format before using Text to Columns tool. Attached workflow in previous comment.

Labels