WebCab Bonds for .NET v2.01

BusinessCalendarTimeConversions.YearsBetweenAsDouble Method (DateTime, DateTime, BusinessCalendar)

Evaluates the number of years within a given period specified by a start and end date.

public static double YearsBetweenAsDouble(
   DateTime startDate,
   DateTime endDate,
   BusinessCalendar businessCalendar
);

Parameters

startDate
the start date of the period
endDate
the end date of the period
businessCalendar
the business calendar used, if no business calendar is specified then the default business calendar is used.

See Also

BusinessCalendarTimeConversions Class | WebCab.BusinessCalendar.Cities Namespace | BusinessCalendarTimeConversions.YearsBetweenAsDouble Overload List