0

Having a format issue on a SMS in Content Builder. Can someone point me to the correct code for this?

Also would love some advice to learn basic AMPScript coding. Books? Tutorials? Online classes?

Current: This is a reminder that you have an appointment scheduled for: %%AppointmentDateTime__c%%

Displaying as:

This is a reminder that you have an appointment scheduled for: 2019-09-05TO09:30:00

Should be showing as:

This is a reminder that you have an appointment scheduled for: 9/05/19 at 9:30am.

2

You could try the FormatDate() function:

%%=v(Concat(FormatDate(AppointmentDateTime__c,"M/dd/yy","", "en-US")," at ",FormatDate(AppointmentDateTime__c,"","HH:mmtt", "en-US")))=%%

Also Adam and Eliot have some great info on AMPScript that you can follow here: https://ampscript.guide/

3
  • Eliot also offers online and offline courses that address your learning goal: ampscript.academy The last one online was last week. You might contact him if there's anything coming up. – Stephan de Paly Sep 17 '19 at 17:30
  • This worked great! Thank you! I am going to devote more time in learning AMPscript. I am a newbie here. – Chris Smith Sep 18 '19 at 17:22
  • Will check out the Guide and Academy – Chris Smith Sep 18 '19 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.