Per recuperare la data odierna:
codice:
var data=new Date();
var anno=data.getFullYear();
var mese=data.getMonth();