I am trying to get a proper code for my website. there is this code:
which will display the date like this: Tue Mar 25 2015.
I want the date to output EXACTLY like this:
all i need to know is that code (or modification to the above code) to make it display the way i want.
Code:
<script>
var d = new Date();
document.getElementById("demo").innerHTML = d.toDateString();
</script>
I want the date to output EXACTLY like this:
Code:
Tuesday, March 25, 2015
Last edited by a moderator: