Show / Hide Table of Contents

    DateTimeExtensions.RelativeDate(this DateTime? date, int? n) Method

    .NET Standard 2.x

    Obtains the DateTime that occurs a specified number of days after or before another DateTime.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

     public static DateTime? RelativeDate(this DateTime? date, int? n);
    

    Parameters

    date System.DateTime

    A value of type DateTime.

    n System.Int32

    An Int32 indicating a number of days.

    Returns

    System.DateTime

    Returns the DateTime that occurs n days after date if n is greater than 0. Returns the date that occurs n days before date if n is less than 0. If any argument's value is null, RelativeDate returns null.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon