ciao

c=document.NOMEFORM.NOMECAMPO
anno=parseInt(c.substr(6,4));
mese=parseInt(c.substr(3,2));
giorno=parseInt(c.substr(0,2));