The string of code is below, currently says that the error is with trying to define the year.
var before = “graduation!” ;
var current = “Last day to use the worthless Knowledge”; // Message to display on future (graduation) date
var montharray = new Array(“January”,“February”,“March”,“April”,“May”,“June”,“July”,“August”,“September”,“October”,“November”,“December”);
function countdown(yr, m, d){
var today = new Date();
var today = today.getDay();
var todayYr = today.getYear();
if(todayYr < 1000){
todayYr += 1900;
var todaym = today.getMonth();
var todayDay = today.getDate();
var todaystring = montharray[todaym] + " " + todayDay + "," + todayYr;
var futurestring = montharray[m - 1] + " " + d + "," + yr;
var difference = (Math.round((Date.parse(futurestring) - Date.parse(todaystring)) / (24 * 60 * 60 * 1000)) * 1); // Future (graduation) Date - Today's Date
if(difference === 0){
document.write(current);
}
else if (difference > 0){
document.write("Only " + difference + "days until" + before);
}
}
}
countdown(2018, 4, 25); // Comparison