JavaScript Tutorial/Date/getFullYear — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:25, 26 мая 2010
Date().getFullYear()
The getFullYear() method returns the year in local time as a full four-digit number.
<source lang="javascript">
<html> <head> <title>Combine Date Values</title> </head> <body> <script language="JavaScript" type="text/javascript">
</script> </body> </html></source>
Get Full year from current date
<source lang="javascript">
<html> <head> <title>A Simple Page</title> <script language="JavaScript">
</script> </head> <body> </body> </html></source>