I have an automated email that will be sent every month and I'm trying to get the expiry to reference the last date of the current month formatted to read 31st January, 2019 or 28th February, 2019. I'm currently using:
%%[ <br/>
SET @firstday=Format(concat(DatePart(Now(),"month"),"/01/",DatePart(Now(),"year")),"MM/dd/yy")<br/> SET @nextmonth = DateAdd(@firstday,"1","M") <br/>
SET @lastday = Format(DateAdd(@nextmonth,"-1","D"),"d MMMM, yyyy") <br/>
]%% <br/>
<br/>
Date: %%=v(@lastday)=%%
Output:
31 August, 2019
Is there a way I can get st or th to sit after the numeric value?