Date Change

The date displayed will change once a week on a Saturday but if it hasnt reached Saturday yet then it will simply display the date for the previous Saturday.

by Lime26

HTML

<div id="date">

</div>

JavaScript

var date = new Date(); //Gets current date
var day = date.getDay(); //Isolates what day it is

if (day === 6) {
  document.getElementById("date").innerHTML = date;
} else {
  //keep the previous saturday somehow? 
}