ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.Get Number of months between two dates in C#<pre class="brush: csharp"> DateTime startDate = new DateTime(2011, 12, 1); DateTime endDate = new DateTime(2012, 12, 1); int months = endDate.Subtract(startDate).Days / 30;</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/289493/Get-Number-of-months-between-two-dates-in-C/http://www.aspforums.net/Threads/289493/Get-Number-of-months-between-two-dates-in-C/Fri, 08 Jun 2012 05:02:35 GMT