ciao a tutti,
prendo la data cosi
e nel trace escecodice:function prendiData() { // prendo la data attuale myDate = new Date(); // anno = myDate.getFullYear(); giorno = myDate.getDate(); nomegiorno = myDate.getDay(); mese = myDate.getMonth(); // _global.miadata = anno+"/"+mese+"/"+giorno; trace(_global.miadata); } prendiData();
come faccio a far uscirecodice:2005/2/1
2005/02/01
in pratica deve aggiungere lo 0 davanti ai mesi e ai giorni :master:
grazie