You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, if the start date is '2015-07-20' and the end date is '2015-08-10', the method will return 0, which will result in only showing July in calendar.
The text was updated successfully, but these errors were encountered:
I know this is ancient, but the function itself sounds like it's functioning fine. There are 0 full months between that start and end date (or even a minimum number of days to comprise a month). The implementation that depends on it might be wrong though.
The method
numberOfMonthsUntilEndDate
written inhttps://github.com/distefam/MDCalendar/blob/master/MDCalendar/NSDate%2BMDCalendar.m#L164
can be wrong when the day of start date is larger than the day of end date.
For example, if the start date is '2015-07-20' and the end date is '2015-08-10', the method will return 0, which will result in only showing July in calendar.
The text was updated successfully, but these errors were encountered: