In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

change date to first day of next month

jaiiracha
7 - Meteor

Hello - If i have a date that reflects the last day of the month for e.g 4/30/23 or 5/31/23. How can i modify this to reflect the first day of the next month so 4/30/23 would now be 5/1/23 and 5/31/23 would now be 6/1/23. BUT if we have dates that fall in mid-month for e.g. 4/21/23 or 5/15/23, these should remain the same. THANK YOU!!!

3 REPLIES 3
jbravman_
8 - Asteroid

if todate(datetimetrim([DateField],'lastofmonth'))= [DateField] then  todate(datetimeadd(datetimetrim([DateField],'lastofmonth'),1,'days')) else todate(DateField) endif 

e: spelling. 

binu_acs
21 - Polaris

@jaiiracha I assume all of your dates will be the last of the month

image.png

Rana_Kareem
9 - Comet

Hi @jaiiracha ..

 

You can use these expressions :

 

Changing Date.png

Labels
Top Solution Authors