Functions.ToDate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToDate(Column, String) |
Converts the column into a |
ToDate(Column) |
Converts the column into |
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