August 1999
Intermediate to advanced
1488 pages
72h 53m
English
date.getMinutes()
The getMinutes() method returns the minutes portion of the Date object expressed as an integer from 0 to 59.
The code in Listing 6.76 displays the current minute using the getMinutes() method.
<html>
<script language="JavaScript">
<!-- Hide
//Create a Date object that contains the current date and time.
theDate = new Date();
//Display the minutes
document.write("The minute is ",theDate.getMinutes());
//Hide End -->
</script>
</html>
|
Read now
Unlock full access