risolto cosi...

Codice PHP:
mm = (dat.getMonth () + 1);
mm String (mm);
if (
mm 10) {
    
mm "0" mm;

ma mi sento proprio grezzo!!!