Ciao a tutti, mi sto mettendo a studiare un pò di JS..visto che sono a 0!
Ho letto qualche cosa sul document.write e come si fa, ecc..
sto facendo questo:
In pratica devo riuscire a fare fare al JS ...se il mese è minore di 10 allora mette uno 0 ...se è maggiore lo mostra! xDCodice PHP:<script type="text/javascript">
var Data = new Date();
var Giorno = Data.getDate();
var Mese = Data.getMonth();
if(Mese < 10) { var Mese = "0" + Data.getMoth(); }
document.write(Giorno + "/" + Mese);
</script>
Sapete aiutarmi? Mi mostra pagina bianca é_é..
Ciao e Grazie! ^^

