These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

calender in livecycle 8

cawp
Registered: Jul 27 2007
Posts: 5

I have a form that has a 2 calenders
1) Can anyone tell me how I can make the form check to see if the date selected on the calender is not less then 5 weekdays from the current date?
ie: If today is July 27, 2007 and the user selects July 30, 2007 I need some sort of error popup to tell him to have his manager make the submission, and then make the form read only

2) Is there a way that if a manager makes the submission this error popup will be prevented. Our company wants to ensure that all sales reps make thier requests at least 5 weekdays before the due date of the request
Thanks
Wayne

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You can use the "Date2Num()" function to get the number of days since January 1, 1900 for both fields and the difference between these numbers is the number of intervening days. For the day number obtained previously, one can convert that number back to the date with the 'Num2Date()" function and specify the resulting format to provide only the full day name, 3 letter day, or a numeric value for day of the week.

George Kaiser