Search the Community
Showing results for tags 'add days to date'.
I am trying to add a variable number of days to a date field. Here is my script: var v_NewDate = new Date(); v_NewDate.setDate(v_NewDate.getDate() + v_LeadTime); If I use todays date (April 9, 2015), and v_LeadTime = 10, I receive the value "Tue Sep 26 2017 13:36:25 GMT-0500 (Central Daylight Time)". Can someone explain what I am doing wrong? Thanks