Share via


Date Constructors

Definition

Overloads

Date(DateTime)

Constructor for Date class.

Date(Int32, Int32, Int32)

Constructor for Date class.

Date(DateTime)

Constructor for Date class.

public Date (DateTime dateTime);
new Microsoft.Spark.Sql.Types.Date : DateTime -> Microsoft.Spark.Sql.Types.Date
Public Sub New (dateTime As DateTime)

Parameters

dateTime
DateTime

DateTime object

Applies to

Date(Int32, Int32, Int32)

Constructor for Date class.

public Date (int year, int month, int day);
new Microsoft.Spark.Sql.Types.Date : int * int * int -> Microsoft.Spark.Sql.Types.Date
Public Sub New (year As Integer, month As Integer, day As Integer)

Parameters

year
Int32

The year (1 through 9999)

month
Int32

The month (1 through 12)

day
Int32

The day (1 through the number of days in month)

Applies to