Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to create a Date field using existing year and month fields

JonaV
8 - Asteroid

Hi,

 

I am having issues coming up with a solution to how to create a date column.

I currently have two fields on that has the month number and one that has the year number. Ex. 11 and 2018 as seen in the image below.

I'd like to use the event year and month # columns to come up with this new date field

 

JonaV_0-1642779761359.png

 

Thank you,

 

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @JonaV 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1642780668284.png

 

Hope this helps : )

 

JonaV
8 - Asteroid

This is great!

 

I used this formula but I had to output it as a V_String because it would return nulls if I had it as a date data type in the formula tool, so I used the DateTime tool to output it as a date data type.

 

But, how can I have it output it in this format "mm/dd/yyyy"?

 

I changed the formula to make it look in this format, but after using the datetime tool it still outputs it in the "yyyy-mm-dd" format

atcodedog05
22 - Nova
22 - Nova

Hi @JonaV 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1642795514488.png

 

Hope this helps : )

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @JonaV 

Cheers and have a nice day!

Labels
Top Solution Authors