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

Linux Mint and HDMI Sound

Set IP from command line

Axapta : Enable/Disable Dialog Control at runtime