ComponentOne CalendarView for WinForms
C1.Globalization Namespace / JapaneseCalendarEx Class / AddMonths Method
The System.DateTime to which to add months.
The number of months to add.

In This Topic
    AddMonths Method
    In This Topic
    When overridden in a derived class, returns a System.DateTime that is the specified number of months away from the specified System.DateTime.
    Syntax
    'Declaration
     
    
    Public Overrides Function AddMonths( _
       ByVal time As Date, _
       ByVal months As Integer _
    ) As Date
    public override DateTime AddMonths( 
       DateTime time,
       int months
    )

    Parameters

    time
    The System.DateTime to which to add months.
    months
    The number of months to add.

    Return Value

    The System.DateTime that results from adding the specified number of months to the specified System.DateTime.
    Exceptions
    ExceptionDescription
    The resulting System.DateTime is outside the supported range of this calendar.
    months is outside the supported range of the System.DateTime return value.
    See Also