spark sql months between two dates