How can I get the next Monday in JavaScript? I can\'t find anything of this in the internet and I have also tried a lot of codes and understanding of this but I can\'t reall
Please try this
d = new Date(d); var day = d.getDay(), diff = d.getDate() - day + (day == 0 ? -6:1); alert(new Date(d.setDate(diff)));