MONTH NUMBER TO year java script code example Example: javascript getmonth new Date().getMonth(); //note that Jan=0, Dec=11 (annoying I know)