We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Last date of the month

sharmilaj
7 - Meteor

Hi all,

 

I'm trying to get the last date of the month from my MMM-YY format. Basically trying to bring the EOMONTH() formula of excel. 

MonthDesired output
Nov-2230/11/2022
Dec-2231/12/2022

Kindly help with the formula in Alteryx for this. 

Thanks!

1 REPLY 1
apathetichell
20 - Arcturus

datetimetrim(datetimeparse([datefield]+"01","%b-%y%d"),"lastofmonth")

 

try that in formation field - where datefield is your datefield in MMM-YY format. Basically this says convert that into a date of the format 3 letter month-2 letter year - date - and then give me the last of month. If you need it formatted in your non-Alteryx/Standardized date way you'd then apply datetimeformat to your date with "%d/%m/%Y" as your settings.

Labels
Top Solution Authors