How to format API date/time format on page

My code formats the date and time as you requested in your original post:
how do i make it so that my date show as May 14, 2018 @ 7:00 pm ?

You need to call these functions as I showed in a previous post and set it to whatever field in the Repeater you want.

As an example, using the the date that you get from the backend:

let date = < date that you get from the backend >
let str = formatDate(date) + " @ " + formatTime(date);
$w("#textFieldInTheRepeaterThatYouWant").text = str;

Put this in the code that sets the repeater fields. If you want the format “mm-dd-yyyy hh:mm am/pm”, then you will have to change the code that I posted.

Of course, you will still need to fix the errors in your code before things work will work properly.

Good luck,

Yisrael