JavaScript Reference/Javascript Methods/getUTCMonth

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"getUTCMonth()" Example

   <source lang="javascript">
   

<html> <body> <button onclick="var myDate = new Date();

                alert(myDate.getUTCMonth());">get UTC month</button>

</body> </html>


     </source>
   
  


"getUTCMonth()" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |Date | +----------------+--------------------------------------------------------------+

     </source>
   
  


"getUTCMonth()" Syntax, Parameters and Note

   <source lang="javascript">

Note: Returns the month based on UTC time. Return value: 0 to 11, with 0 representing January and 11 representing December.

Syntax:

dateName.getUTCMonth()


     </source>