Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Dec 23, 2024
Send us feedback
unix_date
Applies to: Databricks SQL Databricks Runtime
Returns the number of days since 1970-01-01.
1970-01-01
unix_date(expr)
expr: A DATE expression.
expr
An INTEGER.
> SELECT unix_date(DATE('1970-01-02')); 1
unix_micros function
unix_millis function
unix_seconds function