var today = new Date() var targetDate = new Date("02/26/2007") //vul hier de startdatum in maand dag jaar var timeBeforeTarget = Math.floor(( targetDate.getTime() - today.getTime()) / 86400000) var msg = "Nog " + (timeBeforeTarget +1) + " dagen tot Carnaval!" //Vervang hierboven desgewenst de tekst document.write(msg)