Welcome, Guest.
Login
|
Register
Username:
Password:
Remember me:
how to get the year using javascript?
Please log in to post.
Watch thread
Unwatch thread
Started by
a.smith
29 Apr 2012 12:31
By
a.smith
(
204
)
On 29 Apr 2012 12:33
i want to be able to get the current year using javascript so it automaticly says what the year is o.O sorry about my poor grammer xD
heres what i did,
<script type="text/javascript">
var d=new Date();
document.write(d.getYear());
</script>
some reason it gives the value of
112
. any reason why?
By
a.smith
(
204
)
On 29 Apr 2012 15:30
sorry wrong forum thingy 0-0
By
a.smith
(
204
)
On 29 Apr 2012 15:31
why cant i lock? :/
By
Limxzero
(
5329
)
On 29 Apr 2012 16:59
Correct, 'Website Design' it is.
Catch my drift.
Nintendo 3DS is ™ Nintendo Co. Ltd. This website is ©2009-2025 HullBreach Studios. All rights reserved.