now = new Date(); document.write("Сегодня " + now.getDate() + " число");
var div = document.createElement('div'), now = new Date; div.innerHTML = now.getDate(); if(now.getDay() == 0) { div.style.color = 'red'; } document.body.appendChild(div);