ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Core.Rendering.JpCalendar 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
    Returns a System.DateTime that is the specified number of months away from the specified System.DateTime.
    Syntax
    'Declaration
     
    Public Overrides NotOverridable 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
    months is less than -120000.-or- months is greater than 120000.
    The resulting System.DateTime is outside the supported range.
    See Also