I have a requirement to calculate the difference between the current day and due day . I used the below formula and i was able to get the date difference .
<xsl:value-of select="(number(ddwrt:DateTimeTick(ddwrt:Today())) - number(ddwrt:DateTimeTick(ddwrt:GenDisplayName(string($thisNode/@DueDate))))) div 864000000000" />
However I now want to get only the business days in the difference (ie: Sat and Sun is not to be included. Any hints?