How to make setdate say +10 days from a given date, and not from the current?
var date = new Date(2014, 7, 1); // NB: нумерация месяцев начинается с нуля, 7 - это август date.setDate(date.getDate() + 10); $('selector').datepicker({ defaultDate: date, });
Source: https://ru.stackoverflow.com/questions/331018/More articles:Programming problemProhibition of site content movement when the menu is openMySQL request to delete the same rowsPhpStorm + Live Edit, debugging of the attached css-file does not workApple push notification - how to display the correct controller?How to resize the image in html respectively to the monitor screen?Quick linksChange contentSize UIScrollView dynamicallyThe script displays entries from the database in a different encoding.Block height in BootstrapAll Articles