ANSWERS: 1
  • &lt;script language="JavaScript"> var dt = new Date(2008,6,22); var dt1 = new Date(2007,6,22); var i; i = dt - dt1; //returns milliseconds i=i/1000 //returns seconds i=i/60 //returns minutes i=i/60 //returns hours i=i/24 //returns days document.write(i + " days"); //shows 366 because 2008 is a leap year </script>

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy