Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Add Days To Date Automatically - Javascript

$
0
0
Hello All,

Looking for a little guidance...this is probably pretty easy, but just can't figure it out. I read the article regarding how to calculate totals on the fly, was looking for some inspiration to simply add a number of days to a date using Javascript on the add page...this should be done on the fly. I have a field that you can put a number of days in, then a field that you enter a date in, looking to add the number of days in the first field to the date entered in the second field to automatically fill the third field with a new date.

Fields:

NumberOfDays
StartDate
EndDate

For example I would enter 10 in the number of days field, then enter 7/1/2020 in the start date field, and then I need it to populate the end date field automatically with 7/11/2020.

Thank you in advance for your help!

Viewing all articles
Browse latest Browse all 2586

Trending Articles