Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Calculate the number of week days between two dates

$
0
0

Hello,

 

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.

 

 

 

if

(HasValue(Start_Date1) & HasValue(End_Date1) ) then

$

= Date2Num(End_Date1, "YYYY-MM-DD", "en_IE") - Date2Num(Start_Date1, "YYYY-MM-DD", "en_IE") + 1

else

""

endif

 

Any help will be most appreciated.

 

Thank you.

 

 


Viewing all articles
Browse latest Browse all 5571

Trending Articles