ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.VBFunctionLib Assembly / GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace / DateAndTime Class / DateAdd Method / DateAdd(String,Double,Object) Method
Required. DateInterval enumeration value or String expression representing the time interval you want to add.
Required. Double. Floating-point expression representing the number of intervals you want to add. number can be positive (to get date/time values in the future) or negative (to get date/time values in the past). It can contain a fractional part when interval specifies hours, minutes, or seconds. For other values of interval, any fractional part of number is ignored.
Required. Date. An expression representing the date and time to which the interval is to be added. dateValue itself is not changed in the calling program.

In This Topic
    DateAdd(String,Double,Object) Method
    In This Topic
    Returns a Date value containing a date and time value to which a specified time interval has been added.
    Syntax
    'Declaration
     
    Public Overloads Shared Function DateAdd( _
       ByVal interval As String, _
       ByVal number As Double, _
       ByVal dateValue As Object _
    ) As Date
    public static DateTime DateAdd( 
       string interval,
       double number,
       object dateValue
    )

    Parameters

    interval
    Required. DateInterval enumeration value or String expression representing the time interval you want to add.
    number
    Required. Double. Floating-point expression representing the number of intervals you want to add. number can be positive (to get date/time values in the future) or negative (to get date/time values in the past). It can contain a fractional part when interval specifies hours, minutes, or seconds. For other values of interval, any fractional part of number is ignored.
    dateValue
    Required. Date. An expression representing the date and time to which the interval is to be added. dateValue itself is not changed in the calling program.

    Return Value

    Returns a Date value containing a date and time value to which a specified time interval has been added.
    See Also