var d = new Date().getDate(); if (d < 11) { alert('I декада'); } else if (d < 21) { alert('II декада'); } else { alert('III декада'); }