Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <body> <script type="text/vbscript"> fromDate=CDate("2009/12/31") toDate=CDate("2012/12/31") document.write(DateDiff("w",fromDate,toDate,vbMonday)) </script> </body> </html>