var date = new Date(); date.setDate(date.getDate() - 1); var yesterday = date.toLocaleString('ru', { year: 'numeric', month: 'long', day: 'numeric' }); alert(yesterday);