ISO Dates With Time

ISO dates can be written with added hours, minutes, and seconds (YYY-MM-DDTHH:MM:SS), as shown in this example:

   var d = new Date("2015-03-25T12:00:00");

HTML file: Displayed by browser:
<body>
<h4>Example of a complete date plus hours, minutes, and seconds:</h4>
<p id="demo"></p>
<script>
var d = new Date("2015-03-25T12:00:00");
document.getElementById("demo").innerHTML = d;
</script>
</body>

Example of a complete date plus hours, minutes, and seconds:

The T in the date string, between the date and time, indicates UTC time. UTC (Universal Time Coordinated)  is the same as GMT (Greenwich Mean Time).

BackTable of ContentsNext