How do i increase 120 days in datepicker dropdown?

Given a date field:

<input id="dt" type="date" />

Set it to 120 days from now:

var date = new Date();
date.setDate(date.getDate() + 120);
document.getElementById("dt").value = date;

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top