Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

First date of next month

wonka1234
10 - Fireball

Hi,

 

I am trying to use my "End Date" to get the next first date of the month,

 

Ie. End date = "6/30/2022" ,  and want my "Field Start Date" to be "7/1/2022". 

 

wonka1234_0-1640113688893.png

 

However I am getting null!

 

How can I fix this?

2 REPLIES 2
ztriano
7 - Meteor

Try changing the Data Type to Date. I did that and it worked for me, but you need to make sure that the column called End date is in date format already and if it's not, you'll need to pass it through the DateTime tool.

Hi @wonka1234 

 

Alteryx needs the date to be in ISO format YYYY-MM-DD

You will need to convert your date to this format using Date time tool as below

christine_assaad_0-1640115229430.png

You will then need to use the formula to calculate first of following month and if you want, you can format the output (in this case it will show as text instead of date)

christine_assaad_1-1640115322061.png

 

Attached is the WF to help as well. Cheers!

Labels