Hi community,
I would like to ask how do we minus the date format below :
Thank you.
Hi @SH_94
If your datatype is string already, the below formula will work.
datetimediff(datetimeparse([YearMonth1],"%y%m"),datetimeparse([YearMonth2],"%y%m"),"months")
Many thanks
Shanker V
This can be achieved with the help of formula tool.
Use datetimeparse to covert to alteryx format and then use datetimediff() to find the months diff.
Please find the expected output.
datetimediff(datetimeparse(tostring([YearMonth1]),"%y%m"),datetimeparse(tostring([YearMonth2]),"%y%m"),"months")
If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.
Hi @ShankerV ,
Can i have the wokflow ? As i want to see the setting of datatype/
Hope this helps!!!!