JavaScript : Get current year


var today = new Date();
ThisYear = today.getYear()+0;
if(ThisYear <= 1999){
ThisYear = ThisYear - 100 + 2000;
}

Comments

Popular posts from this blog

ใต้ร่มกาสาวพัตร

ย้ายบ้าน

Google Gears