JavaScript Tutorial/Date/getYear — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:25, 26 мая 2010
Date.getYear()
The getYear() method returns the year portion of the Date object.
The year is represented as either a two-digit number or a four-digit number, depending on the browser version.
<source lang="javascript">
<html> <head> <title>A Simple Page</title> <script language="JavaScript">
</script> </head> <body> </body> </html></source>