I knew nothing about scripting..., but i work with adobe forms. i have a Staff Leave Rejoining form where there are two fields 'From'(d/mmm/yy) and 'To'(d/mmm/yy). Now there is one more field called 'Duration'(number format) to fill up the number of leave days availed. Anybody can please help me to get the 'Duration' by scripting.... Please help.
it was awesome!, thanks for your help. it worked fine with the form in acrobat, but the same script is not working with the same form done livecycle designer. do you have any suggestions?