I am writing this java script code to simply write the date. My code will display the month, day and year, but it does it with numbers? I tried to create an array for the getDay function so that it would convert the number of month to the English word and display that. I am having problems with my syntax I think. Anyone got any tips?
<script type = “text/javascript”>
var now = new Date();
var year = now.getYear();
var month = now.getMonth();
var day = now.getDay(rday);
var rday = [“Sunday”, “Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”];
document.write("<p>" + day + “</p>”);
</script>