I have been reading this archived solution: ++ Adding number of days to an existing date and while the thread has been helpful, I cannot seem to get the function to work. I have version 5.0.0.00.31 and using IE ver 11.0.9600.18282CO.
I have tried several different things trying to get the function to work but nothing I do seems to have an effect.
I have a date entry field (Return Date) and if the user enters a date from the date picker I want the NEW Expiration Date to be 183 days (6 months) into the future from the entered Return Date.
At one time I was having the same date formatting error as in the original thread but I modified the new date to have a two digit year (var newDate = (d.getDate())+"-"+monthNames[d.getMonth()]+"-"+Integer.valueOf(String.valueOf(d.getMonth().Year()).right(2));)
At one time I was getting the alert function to work...but that isn't working either, which tends to make me think I have something set up incorrectly.
So what I was hoping for was 1) user enters a return date into Return Date field and 2) a date 6 months into the future is returned to the NEW Expiration date.
A help is appreciated.