Hi Guys
I have 2 dates and am doing a datediff to get the days between the two.
<cfset date1 = "2004-06-07 00:00:00">
<cfset date2 = "2004-06-15 00:00:00">
<cfoutput>#DateDiff("d", "#date1#", "#Date2#")#</cfoutput> gives me 8
But I want to also be able to calculate the business days only also (doing the same as the above but excluding weekends). I could've sworn I came across a UDF or some which did this before, but have search on cflib with no luck.
Anyone have anything handy?
Thanks
Mark
