JavaScript : Get current year
1 2 3 4 5 | var today = new Date(); ThisYear = today.getYear()+0; if(ThisYear <= 1999){ ThisYear = ThisYear - 100 + 2000; } |
Written by Komkid on August 5th, 2009 with
no comments.
Read more articles on JavaScript and Programming.
- [+] Digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article