I've been trying to use javascript on my wordpress post for over 2 hours now. I researched everything there is to research, and it still isn't working.
I've made sure to paste my code in the "text" tab of wordpress.
Can I get some help?
Here's my code:
<script language="Javascript">
<!--
// Array of day names
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday",
"Thursday","Friday","Saturday");
// Array of month Names
var monthNames = new Array(
"January","February","March","April","May","June","July",
"August","September","October","November","December");
var now = new Date();
document.write(dayNames[now.getDay()] + ", " +
monthNames[now.getMonth()] + " " +
now.getDate() + ", " + now.getFullYear());
// -->
</script>
<!--in the begining