-4

I want to add number of days to particular date using javascript only example:

textbox1.text=10-04-2013
textbox2.text=30

textbox3.text=10-05-2013
Jamiec
  • 128,537
  • 12
  • 134
  • 188
  • 1
    What are you having trouble with? – Blender Apr 19 '13 at 07:28
  • Please do a google and stackoverflow search before posting a question... posting a same question again and again does not help the community. – AurA Apr 19 '13 at 07:31
  • @AurA - if you find a perfect dupe, hit the close button and paste the duplicate URL in. No need to do anything else! – Jamiec Apr 19 '13 at 07:31
  • @Jamiec I already know and did that... – AurA Apr 19 '13 at 07:32
  • @AurA - really? Something's not working then because I did, and I only see 1 close vote (my own!) Weird. – Jamiec Apr 19 '13 at 07:33
  • @Jamiec I flagged it as duplicate.. I cannot close a question it requires 3000 reputation point :( http://stackoverflow.com/faq#reputation – AurA Apr 19 '13 at 07:40

1 Answers1

1

You can use this

var yourDate= new Date();
var numberOfDaysToAdd = 6;
someDate.setDate(yourDate.getDate() + numberOfDaysToAdd); 
PSR
  • 38,073
  • 36
  • 106
  • 149