How should I set formatDate?

I could ping this one too.

http://159.203.188.75/

There is something totally wrong with your page.

You are using a content page/include page which is wrongly created. Your content page is a full-featured html page with html, body and head tags. Again you just copy-pasted some html around and not used Wappler to create the content page for the SPA…

Please make sure how to create content pages for Single Page Apps, as you should not be using them like you are doing now for your home.php page:

Sorry again…

now I prepared an include page from the scratch.
finally you can see that formatDate2 doesn’t populate the data…
http://174.138.46.199/

The moment.js framework is not included on your main page. Please make sure to include it, and make sure the custom formatter script is added after the moment.js includes in the page head.

thanks,
btw, you mean “page head”, is it on “index.php” or an include page “home.php”?

When referring to page head i mean the <head> tags. And <head> tags are only available on your main page i.e. the index.php in your case. So you should include it on your main page.

1 Like

I can see some wrong letters though, I could solve it.

I really appreciate you!!

1 Like