JavaScript Reference/Javascript Methods/parse

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

"parse()" Example

   <source lang="javascript">
   

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

                alert(Date.parse(myDate));">parte a date</button>

</body> </html>


     </source>
   
  


"parse()" is applied to

   <source lang="javascript">

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

     </source>
   
  


"parse()" Syntax, Parameters and Note

   <source lang="javascript">

Note: Returns the number of milliseconds elapsed between the specified date and January 1, 1970.

Syntax:

dateName.parse(param1) Parameters:

   param1   Required; the ending date of the calculation.
   
     
     </source>