New answers tagged

3

Do it in AMPscript using Format Date function: https://ampscript.guide/formatdate/ Example: set @dateISO = FormatDate(@dateString,"iso") You can pass the date variable form SSJS to AMPscript using SetValue function: https://ampscript.guide/setvalue/


1

Not exactly ideal solution, but could do datepart() to get day month year and then do a conditional to append the correct 'st' or 'th'. For instance: Set @day = datepart(@endmonthdate, 'D') Set @month = datepart(@endmonthdate, 'M') Set @year = datepart(@endmonthdate, 'Y') If length(@day) > 1 then Set @dayend = substring(@day, 2, 1) Else Set @...


Top 50 recent answers are included