Can any one please help modify my formcalc script to calculate the number of weekdays between two date fields. My script currently calculates the total number of days between two dates, including the weekends which need to be excluded from the total.

1) You stated you put the script on the calculate event of "days1". My sample mimics the variable names used in the original post, "Start_Date1" and "End_Date1". If the variable names for the start and end dates are different you will have to change the script to reflect those names.

2) The Date2Num functions in the calculation of "totalDays" uses the date format "YYYY-MM-DD". If your date patterns differ from "YYYY-MM-DD" FormCalc will complain.