
Spring Break 3 Way
🚨FRESH BATCH ALERT🚨 To get my FRESHEST batch + FASTEST shipping, order before: 2 DAYS : 13 HOURS : 29 MINUTES : 39 SECONDS // Set the date we're counting down to function getNextDayOfWeek(date, dayOfWeek) { // Code to check that date and dayOfWeek are valid left as an exercise ;) var resultDate = new Date(date.getTime()); resultDate.setDate(date.getDate() + (7 + dayOfWeek - date.getDay()) % 7); return resultDate; } var currentTime = new Date(); var NextFriday = getNextDayOfWeek(currentTime,5); var NextFridayMidnight = NextFriday.setHours(23,59,59,99); var countDownDate = new Date(NextFridayMidnight).getTime(); // Update the count down every 1 second var x = setInterval(function() { // Get today's date and time var now = new Date().getTime(); // Find the distance between now and the count down date var distance = countDownDate - now; // Time calculations for days, hours, minutes and seconds var days = Math.floor(distance / (1000 * 60 * 60 * 24)