Share via


Functions.ToDate Method

Definition

Overloads

ToDate(Column, String)

Converts the column into a DateType with a specified format.

ToDate(Column)

Converts the column into DateType by casting rules to DateType.

ToDate(Column, String)

Converts the column into a DateType with a specified format.

public static Microsoft.Spark.Sql.Column ToDate (Microsoft.Spark.Sql.Column column, string format);
static member ToDate : Microsoft.Spark.Sql.Column * string -> Microsoft.Spark.Sql.Column
Public Shared Function ToDate (column As Column, format As String) As Column

Parameters

column
Column

Column to apply

format
String

Date format

Returns

Column object

Remarks

Supported date format can be found: http://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html

Applies to

ToDate(Column)

Converts the column into DateType by casting rules to DateType.

public static Microsoft.Spark.Sql.Column ToDate (Microsoft.Spark.Sql.Column column);
static member ToDate : Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function ToDate (column As Column) As Column

Parameters

column
Column

Column to apply

Returns

Column object

Applies to