hoje = new Date();
dia = hoje.getDate();
dias = hoje.getDay();
ano = hoje.getFullYear();
if (dia < 10) dia = '0' + dia;
nd = 'Domingo,Segunda-feira,Terça-feira,Quarta-feira,Quinta-feira,Sexta-feira,Sábado'.split(',');
nm = 'Janeiro,Fevereiro,Março,Abril,Maio,Junho,Julho,Agosto,Setembro,Outubro,Novembro,Dezembro'.split(',');
document.write (nd[dias] + ', ' + dia + ' de ' + nm[hoje.getMonth()] + ' de ' + ano);