troubleshooting Question

calculate number of days in each month between two dates

Avatar of iepaul
iepaulFlag for Ireland asked on
Visual Basic.NET
4 Comments1 Solution953 ViewsLast Modified:
How would I calculate the number of days in each month between two dates in vb.net?
Example: Given start date of 12/09/2010 and end date 07/11/2010 I would like to get back

09/2010 - 22 days
10/2010 - 31 days
11/2010 - 7 days

I am not to worried by the exact out format as long as I can distinguish between the months.

The start and end dates vary and could possibly be in the same month or across two months or even more.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros