I would like help to update this date.js code to remove the document.write statements as it is now obsolete
if (Date.parse(document.lastModified) != 0) {
var modiDate = new Date(document.lastModified);
var monthName = new Array("January", "February", "March", "April", "May",
"June", "July", "August", "September", "October", "November", "December");
document.write(monthName[modiDate.getMonth()] + " ");
document.write(modiDate.getDate() + ", " + modiDate.getFullYear());
}
What do I put in place of document.write(...... please
the javascript code produces a (File) Updated on September 12, 2019 at the bottom of the web page via this code snipit
<p>Updated <script type="text/javascript" src="/public/jsscripts/date.js"> </script>
Thanks Mark