Answered
Need help with calc. a future date. Right now I have it where it calc. 25 days in the future. But need 25 working days in the future.
form1.Page1.Button1::click - (JavaScript, client)
var oNow = new Date();
// add 25 days and make new date object
oNow = new Date(oNow.getFullYear(), oNow.getMonth(), (oNow.getDate() + 25) )
// dispaly new date information
sMsg = "In 25 days it will be " + util.printd("mm/dd/yyyy", oNow);
sMsg += "\n" + "The day of the week will be " + util.printd("dddd", oNow);
app.alert(sMsg, 3, 0)
Do a search on "working days". There have already been some posts on the topic. In fact, I wrote a working days calculator at one point, I think it's linked in one of the posts.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script