-2
I made this code in Javascript, but it’s coming out the month as December and not the correct one is February.
function getDataPorExtenso() {
    var data = new Date(),
        dia = data.getDate().toString(),
        diaF = (dia.length == 1) ? '0' + dia : dia,
        mes = (data.getMonth() + 1).toString(), //+1 pois no getMonth Janeiro começa com zero.
        mesF = (mes.length == 1) ? '0' + mes : mes,
        anoF = data.getFullYear();
    switch (mesF) {
        case "01":
            mesF = "Janeiro";
        case "02":
            mesF = "Fevereiro";
        case "03":
            mesF = "Março";
        case "04":
            mesF = "Abril";
        case "05":
            mesF = "Maio";
        case "06":
            mesF = "Junho";
        case "07":
            mesF = "Julho";
        case "08":
            mesF = "Agosto";
        case "09":
            mesF = "Setembro";
        case "10":
            mesF = "Outubro";
        case "11":
            mesF = "Novembro";
        case "12":
            mesF = "Dezembro";
    }
    return "São Paulo, " + diaF + " de " + mesF + " de " + anoF;
}
Each
casemust have abreak, otherwise theswitchcontinues executing the others (the call Fall through - see more here, here and here)– hkotsubo