Table of contents 1. Spark SQL datadiff() - Date Difference in Days. 2. Date Difference in Months. 3. Date Difference in Seconds. 3.1 Using unix_timestamp() 3.2. Using to_timestamp() 4. Date Difference in Minutes. 5. Date Difference in Hours. Conclusion Related Articles