Functions.DateTrunc(String, Column) 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.
Returns timestamp truncated to the unit specified by the format.
public static Microsoft.Spark.Sql.Column DateTrunc(string format, Microsoft.Spark.Sql.Column column);
static member DateTrunc : string * Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function DateTrunc (format As String, column As Column) As Column
Parameters
- format
- String
'year', 'yyyy', 'yy' for truncate by year, or 'month', 'mon', 'mm' for truncate by month, or 'day', 'dd' for truncate by day, or 'second', 'minute', 'hour', 'week', 'month', 'quarter'
- column
- Column
Column to apply
Returns
Column object