This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Depends on what answer you want how many days between monday and friday - 5? how many days between 15th and 19th - 4? actual days in-between 15th and 19th = 3 You can convert the dates to milliseconds, then subtract dt1 from dt2, then convert the result back to days. Here's a way where you can easily change the code, depending on the output you want.