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