Please can anyone shed any light on this for me, and possibly suggest a solution.
I am creating a custom calendar which will be used to schedule events.
In the constructor I pass in 2 dates (startDate and endDate)
The form has a FlowLayoutPanel which is then populated with UserControls for the Months.
The issue I am having is that when I do a DateDiff(DateInterval.Month, startDate, endDate)
with the following Dates: startDate = 22/11/2012, endDate = 28/02/2013 the result is 3.
BUT, actually, on a calendar, I would need to display 4 Months - Nov, Dec, Jan & Feb.
That said though, the logic works correctly for startDate = 12/11/2012, endDate = 01/03/2012