Mega Code Archive

 
Categories / JavaScript Tutorial / Date
 

Date() getMinutes()

The getMinutes() method returns the minutes portion of the Date object expressed as an integer from 0 to 59. <html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- dateVar = new Date(); alert(dateVar.getMinutes()); //  --> </script> </head> <body> </body> </html>