Java/java script auto generate END Date
833473Feb 2 2011 — edited Feb 3 2011Hi,
I have a jps page with 4 fields.
1. drop down list
2. text box
3. start date
4. end date
the problem is
text box will allow "number of days"
start date will get date from user on popup window
end date has to be generate based on text box value "no of days", another filed which will retrieve from db and start date
ex:
if text box values is <50 and start date (user selected date) is 02-04-2010 , the end date should add 8 days from the start date.
now the problem is calculating end date based on the start date with no of days which is given by user.
i have spend time to write java script, but i am not able to complete the entire logic.
please give some idea whether it can perform by java script or java bean.
Thanks,
Jasmin Rosline