sparkbyexamples.com
PySpark - Difference between two dates (days, months, years)
Using PySpark SQL functions datediff(), months_between(), you can calculate the difference between two dates in days, months, and years. Let's see this by
Naveen Nelamali