Show / Hide Table of Contents

    DateTimeExtensions.DayNumber(this DateTime? dateTime) Method

    .NET Standard 2.x

    Gets the day of the week of a nullable type DateTime value and returns the number of the weekday.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

     public static short? DayNumber(this DateTime? dateTime);
    

    Parameters

    dateTime System.DateTime

    The DateTime value from which you want the number of the day of the week.

    Returns

    System.Int16

    Returns an Int16(1-7) representing the day of the week of DateTime. Sunday is day 1, Monday is day 2, and so on.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon