Show / Hide Table of Contents

    DateTimeExtensions.DaysAfter(this DateTime date1, DateTime? date2) Method

    .NET Standard 2.x

    Determines the number of days one DateTime occurs after another.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

     public static int? DaysAfter(this DateTime date1, DateTime? date2);
    

    Parameters

    date1 System.DateTime

    A DateTime value that is the start date of the interval being measured.

    date2 System.DateTime

    A DateTime value that is the end DateTime of the interval.

    Returns

    System.Int32

    Returns an Int32 whose value is the number of days date2 occurs after date1. If date2 occurs before date1, DaysAfter returns a negative number. If date2 is null, DaysAfter returns null.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon