JavaScript Tutorial/Date/getMinutes

Материал из Web эксперт
Перейти к: навигация, поиск

Date().getMinutes()

The getMinutes() method returns the minutes portion of the Date object expressed as an integer from 0 to 59.



   <source lang="javascript">

<html> <head> <title>A Simple Page</title> <script language="JavaScript">

</script> </head> <body> </body> </html></source>


Display current time by using Date.getHours(), Date().getMinutes(), Date().getSeconds()

   <source lang="javascript">

<html> <head> <title>Convert Time</title> </head> <body> <script language="JavaScript" type="text/javascript">

</script> </body> </html></source>