6
rated 0 times
[
11]
[
5]
/ answers: 1 / hits: 18373
/ 14 Years ago, tue, november 16, 2010, 12:00:00
How can I find the date 30 days after the current day? here 30 is the fixed value. how can i pass the dynamic value to this function..
days = document.getElementById('day').value;
var d = new Date();
d.setDate(d.getDate() + days);
it is not working..it gives wrong answer
More From » javascript